Struct LkPath

#[repr(C, packed(1))]
pub struct LkPath { /* private fields */ }

Implementations§

§

impl LkPath

pub fn to_array(&self) -> LkPathArray

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

§

impl LkPath

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

§

impl LkPath

pub fn ablist(&self) -> ABList

§

impl LkPath

pub const EMPTY: &'static LkPath

pub fn segments(&self) -> &LkPathSegm

pub fn double_check_parts(&self) -> Result<(), LkPathError>

pub unsafe fn from_unchecked(bytes: &[u8]) -> &LkPath

§Safety

Previous call to LkPath::from_bytes should have succeeded

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

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

pub fn parts(&self) -> [Option<LkPathPart<'_>>; 8]

pub fn parts_bytes(&self) -> [&[u8]; 8]

pub fn parts_bytes_mut(&mut self) -> [&mut [u8]; 8]

pub fn nparts(&self) -> &u8

pub fn part0(&self) -> &[u8]

pub fn part0_mut(&mut self) -> &mut [u8]

pub fn part1(&self) -> &[u8]

pub fn part1_mut(&mut self) -> &mut [u8]

pub fn part2(&self) -> &[u8]

pub fn part2_mut(&mut self) -> &mut [u8]

pub fn part3(&self) -> &[u8]

pub fn part3_mut(&mut self) -> &mut [u8]

pub fn part4(&self) -> &[u8]

pub fn part4_mut(&mut self) -> &mut [u8]

pub fn part5(&self) -> &[u8]

pub fn part5_mut(&mut self) -> &mut [u8]

pub fn part6(&self) -> &[u8]

pub fn part6_mut(&mut self) -> &mut [u8]

pub fn part7(&self) -> &[u8]

pub fn part7_mut(&mut self) -> &mut [u8]

§

impl LkPath

pub fn boxed(&self) -> Box<LkPath>

pub fn rc(&self) -> Rc<LkPath>

Methods from Deref<Target = LkPathSegm>§

pub fn try_into_array(&self) -> Result<LkPathArray, LkPathError>

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

pub const EMPTY: &'static LkPathSegm

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

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

pub fn is_empty(&self) -> bool

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

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

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

Trait Implementations§

§

impl Borrow<LkPath> for LkPathArray

§

fn borrow(&self) -> &LkPath

Immutably borrows from an owned value. Read more
§

impl Debug for LkPath

§

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

Formats the value using the given formatter. Read more
§

impl Deref for LkPath

§

type Target = LkPathSegm

The resulting type after dereferencing.
§

fn deref(&self) -> &<LkPath as Deref>::Target

Dereferences the value.
§

impl Display for LkPath

§

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

Formats the value using the given formatter. Read more
§

impl From<&LkPath> for LkPathArray

§

fn from(value: &LkPath) -> LkPathArray

Converts to this type from the input type.
§

impl Hash for LkPath

§

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

Feeds this value into the given Hasher. Read more
§

impl Index<usize> for LkPath

§

type Output = [u8]

The returned type after indexing.
§

fn index(&self, index: usize) -> &<LkPath as Index<usize>>::Output

Performs the indexing (container[index]) operation. Read more
§

impl IndexMut<usize> for LkPath

§

fn index_mut(&mut self, index: usize) -> &mut <LkPath as Index<usize>>::Output

Performs the mutable indexing (container[index]) operation. Read more
§

impl Ord for LkPath

§

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

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

impl PartialEq for LkPath

§

fn eq(&self, other: &LkPath) -> 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 LkPath

§

fn partial_cmp(&self, other: &LkPath) -> 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 LkPath

§

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 ToOwned for LkPath

§

type Owned = LkPathArray

The resulting type after obtaining ownership.
§

fn to_owned(&self) -> <LkPath as ToOwned>::Owned

Creates owned data from borrowed data, usually by cloning. Read more
1.63.0 · Source§

fn clone_into(&self, target: &mut Self::Owned)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl TryAsSpace for LkPath

Source§

fn try_as_space(&self, scope: &dyn LkEnv) -> Result<Space>

§

impl Eq for LkPath

Auto Trait Implementations§

§

impl Freeze for LkPath

§

impl RefUnwindSafe for LkPath

§

impl Send for LkPath

§

impl !Sized for LkPath

§

impl Sync for LkPath

§

impl Unpin for LkPath

§

impl UnwindSafe for LkPath

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<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
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