Struct LkPathSegm

pub struct LkPathSegm { /* private fields */ }

Implementations§

§

impl LkPathSegm

§

impl LkPathSegm

pub fn alt_delimiter(&self, delim: Ctr) -> String

§

impl LkPathSegm

pub const EMPTY: &'static LkPathSegm

pub fn from_bytes(b: &[u8]) -> Result<&LkPathSegm, LkPathError>

pub const unsafe fn from_unchecked(b: &[u8]) -> &LkPathSegm

§Safety

Calling iter_checked should return Ok

pub fn iter(&self) -> impl Iterator<Item = LkPathPart<'_>>

pub fn iter_checked( &self, ) -> impl Iterator<Item = Result<LkPathPart<'_>, LkPathError>>

pub const fn is_empty(&self) -> bool

pub const fn raw_segment_bytes(&self) -> &[u8]

pub fn starts_with(&self, other: &LkPathSegm) -> bool

pub fn shift(&self) -> (Option<LkPathPart<'_>>, &LkPathSegm)

Trait Implementations§

§

impl Debug for LkPathSegm

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Display for LkPathSegm

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Hash for LkPathSegm

§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
§

impl Ord for LkPathSegm

§

fn cmp(&self, other: &LkPathSegm) -> Ordering

This method returns an Ordering between self and other. Read more
§

impl PartialEq for LkPathSegm

§

fn eq(&self, other: &LkPathSegm) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl PartialOrd for LkPathSegm

§

fn partial_cmp(&self, other: &LkPathSegm) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
§

impl ToABE for LkPathSegm

§

fn write_abe(&self, out: &mut dyn FnMut(ABE))

§

fn write_abe_str(&self, out: &mut dyn Write) -> Result<(), Error>

§

fn to_abe_str(&self) -> String

§

fn to_abe(&self) -> Vec<ABE>

§

impl Eq for LkPathSegm

§

impl StructuralPartialEq for LkPathSegm

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more