Enum Segment
pub enum Segment {
Static(Range<usize>),
Named(Box<str>),
Builtin(Builtin),
}Variants§
Implementations§
§impl Segment
impl Segment
pub(crate) fn parse_expr(s: &str) -> Result<Self, Parse>
pub(crate) fn estimated_len(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Segment
impl RefUnwindSafe for Segment
impl Send for Segment
impl Sync for Segment
impl Unpin for Segment
impl UnwindSafe for Segment
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more