Struct LkPath
#[repr(C, packed(1))]pub struct LkPath { /* private fields */ }
Implementations§
§impl LkPath
impl LkPath
pub fn to_array(&self) -> LkPathArray
pub fn pop_last(&self) -> (&LkPathSegm, Option<LkPathPart<'_>>)
§impl LkPath
impl LkPath
pub fn from_bytes(bytes: &[u8]) -> Result<&LkPath, LkPathError>
§impl LkPath
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
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] ⓘ
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
impl Borrow<LkPath> for LkPathArray
§impl From<&LkPath> for LkPathArray
impl From<&LkPath> for LkPathArray
§fn from(value: &LkPath) -> LkPathArray
fn from(value: &LkPath) -> LkPathArray
Converts to this type from the input type.
§impl PartialOrd for LkPath
impl PartialOrd for LkPath
§impl ToOwned for LkPath
impl ToOwned for LkPath
§type Owned = LkPathArray
type Owned = LkPathArray
The resulting type after obtaining ownership.
§fn to_owned(&self) -> <LkPath as ToOwned>::Owned
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)
fn clone_into(&self, target: &mut Self::Owned)
Uses borrowed data to replace owned data, usually by cloning. Read more