Enum diskplan_schema::Special
source · pub enum Special {
PathRelative,
PathAbsolute,
PathNameOnly,
ParentRelative,
ParentAbsolute,
ParentNameOnly,
RootPath,
}
Expand description
A choice of built-in variables that are used to provide context information during traversal
Variants§
PathRelative
The current path relative to the active root
PathAbsolute
The current absolute path
PathNameOnly
The final component of the current path
ParentRelative
The current relative path without the final component
ParentAbsolute
The current absolute path without the final component
ParentNameOnly
The penultimate component of the current path
RootPath
The absolute path of the active root
Implementations§
source§impl Special
impl Special
sourcepub const SAME_PATH_RELATIVE: &'static str = "PATH"
pub const SAME_PATH_RELATIVE: &'static str = "PATH"
The current path relative to the active root
sourcepub const SAME_PATH_ABSOLUTE: &'static str = "FULL_PATH"
pub const SAME_PATH_ABSOLUTE: &'static str = "FULL_PATH"
The current absolute path
sourcepub const SAME_PATH_NAME: &'static str = "NAME"
pub const SAME_PATH_NAME: &'static str = "NAME"
The final component of the current path
sourcepub const PARENT_PATH_RELATIVE: &'static str = "PARENT_PATH"
pub const PARENT_PATH_RELATIVE: &'static str = "PARENT_PATH"
The current relative path without the final component
sourcepub const PARENT_PATH_ABSOLUTE: &'static str = "PARENT_FULL_PATH"
pub const PARENT_PATH_ABSOLUTE: &'static str = "PARENT_FULL_PATH"
The current absolute path without the final component
sourcepub const PARENT_PATH_NAME: &'static str = "PARENT_NAME"
pub const PARENT_PATH_NAME: &'static str = "PARENT_NAME"
The penultimate component of the current path
Trait Implementations§
source§impl Ord for Special
impl Ord for Special
source§impl PartialEq for Special
impl PartialEq for Special
source§impl PartialOrd for Special
impl PartialOrd for Special
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for Special
impl StructuralEq for Special
impl StructuralPartialEq for Special
Auto Trait Implementations§
impl RefUnwindSafe for Special
impl Send for Special
impl Sync for Special
impl Unpin for Special
impl UnwindSafe for Special
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