Struct LkPathArray
#[repr(C)]pub struct LkPathArray<const N: usize = linkspace_point::::path::LkPathArray::{constant#0}> {
pub roots: Roots,
/* private fields */
}
Fields§
§roots: Roots
Implementations§
§impl LkPathArray
impl LkPathArray
pub const EMPTY: LkPathArray = Self::EMPTY_CONST_SIZED
pub const INVALID: LkPathArray<0>
pub const INVALID: LkPathArray<0>
This triggers MissingRoots error on deserialize::LkPath::from_bytes
pub const fn from_path(value: &LkPath) -> LkPathArray
pub fn extend_from_iter<A, T>(&mut self, iter: T) -> Result<(), LkPathError>
pub fn try_from_iter<A, T>(iter: T) -> Result<LkPathArray, LkPathError>
§impl<const N: usize> LkPathArray<N>
impl<const N: usize> LkPathArray<N>
pub const EMPTY_CONST_SIZED: LkPathArray<N>
pub const fn push(&mut self, part: &[u8]) -> Result<(), LkPathError>
pub const fn try_from_path( path: &LkPath, ) -> Result<LkPathArray<N>, CapacityError>
§impl LkPathArray
impl LkPathArray
pub fn try_from_ablist(ablist: &ABList) -> Result<LkPathArray, LkPathExprError>
§impl LkPathArray
impl LkPathArray
pub fn parse_eval_basic( st: &str, ) -> Result<LkPathArray, ABEError<LkPathExprError>>
§impl<const N: usize> LkPathArray<N>
impl<const N: usize> LkPathArray<N>
pub const fn as_path(&self) -> &LkPath
pub const fn as_path_mut(&mut self) -> &mut LkPath
Methods from Deref<Target = LkPath>§
pub fn to_array(&self) -> LkPathArray
pub fn pop_last(&self) -> (&LkPathSegm, Option<LkPathPart<'_>>)
pub fn ablist(&self) -> ABList
pub const EMPTY: &'static LkPath
pub fn segments(&self) -> &LkPathSegm
pub fn double_check_parts(&self) -> Result<(), LkPathError>
pub fn as_bytes(&self) -> &[u8] ⓘ
pub 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] ⓘ
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
impl Borrow<LkPath> for LkPathArray
§impl<const N: usize> Clone for LkPathArray<N>
impl<const N: usize> Clone for LkPathArray<N>
§fn clone(&self) -> LkPathArray<N>
fn clone(&self) -> LkPathArray<N>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl<const N: usize> Debug for LkPathArray<N>
impl<const N: usize> Debug for LkPathArray<N>
§impl Default for LkPathArray
impl Default for LkPathArray
§fn default() -> LkPathArray
fn default() -> LkPathArray
Returns the “default value” for a type. Read more
§impl<const N: usize> Deref for LkPathArray<N>
impl<const N: usize> Deref for LkPathArray<N>
§impl<const N: usize> DerefMut for LkPathArray<N>
impl<const N: usize> DerefMut for LkPathArray<N>
§fn deref_mut(&mut self) -> &mut <LkPathArray<N> as Deref>::Target
fn deref_mut(&mut self) -> &mut <LkPathArray<N> as Deref>::Target
Mutably dereferences the value.
§impl<const N: usize> Display for LkPathArray<N>
impl<const N: usize> Display for LkPathArray<N>
§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 FromStr for LkPathArray
impl FromStr for LkPathArray
§impl Ord for LkPathArray
impl Ord for LkPathArray
§impl<const N: usize> PartialEq for LkPathArray<N>
impl<const N: usize> PartialEq for LkPathArray<N>
§impl PartialOrd for LkPathArray
impl PartialOrd for LkPathArray
§impl ToABE for LkPathArray
impl ToABE for LkPathArray
Source§impl TryAsSpace for LkPathArray
impl TryAsSpace for LkPathArray
§impl TryFrom<ABList> for LkPathArray
impl TryFrom<ABList> for LkPathArray
impl<const N: usize> Copy for LkPathArray<N>
impl<const N: usize> Eq for LkPathArray<N>
impl<const N: usize> StructuralPartialEq for LkPathArray<N>
Auto Trait Implementations§
impl<const N: usize> Freeze for LkPathArray<N>
impl<const N: usize> RefUnwindSafe for LkPathArray<N>
impl<const N: usize> Send for LkPathArray<N>
impl<const N: usize> Sync for LkPathArray<N>
impl<const N: usize> Unpin for LkPathArray<N>
impl<const N: usize> UnwindSafe for LkPathArray<N>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more