Enum State
pub(in ::path) enum State
Component parsing works by a double-ended state machine; the cursors at the front and back of the path each keep track of what parts of the path have been consumed so far.
Going front to back, a path is made up of a prefix, a starting directory component, and a body (of normal components)
Variants
-
Prefix = 0 -
StartDir = 1 -
Body = 2 -
Done = 3
Trait Implementations
impl Clone for State
fn clone(&self) -> State
impl Copy for State
impl Debug for State
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl PartialEq for State
fn eq(&self, other: &State) -> bool
impl PartialOrd for State
fn partial_cmp(&self, other: &State) -> Option<Ordering>
impl StructuralPartialEq for State
impl TrivialClone for State
Auto Trait Implementations
impl Freeze for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnsafeUnpin for State
impl UnwindSafe for State
Blanket Implementations
impl<T> Any for State
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for State
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for State
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for State
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for State
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Printable for State
where
T: Copy + Debug,
impl<T> SizeHint for State
where
T: ?Sized,
fn lower_bound(&self) -> usizefn upper_bound(&self) -> Option<usize>
impl<T> SizedTypeProperties for State
impl<T> ToOwned for State
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for State
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for State
where
U: Into<T>,
type Error = Infallible;fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for State
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>