pub enum PathAnchor {
Root,
Parent(usize),
}
Expand description
Indicates whether a name is absolute or relative to the current or parent scope.
Variants§
Trait Implementations§
Source§impl Clone for PathAnchor
impl Clone for PathAnchor
Source§fn clone(&self) -> PathAnchor
fn clone(&self) -> PathAnchor
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 moreSource§impl Debug for PathAnchor
impl Debug for PathAnchor
Source§impl Display for PathAnchor
impl Display for PathAnchor
Source§impl<'a> Parse<'a> for PathAnchor
See grammar for NameString
.
impl<'a> Parse<'a> for PathAnchor
See grammar for NameString
.
Source§fn parse<E: AMLParseError<'a>>(
i: ParserState<'a>,
) -> AMLParseResult<'a, Self, E>
fn parse<E: AMLParseError<'a>>( i: ParserState<'a>, ) -> AMLParseResult<'a, Self, E>
Try to parse an object of this type from the given input and state. Read more
Source§impl PartialEq for PathAnchor
impl PartialEq for PathAnchor
impl Copy for PathAnchor
impl Eq for PathAnchor
impl StructuralPartialEq for PathAnchor
Auto Trait Implementations§
impl Freeze for PathAnchor
impl RefUnwindSafe for PathAnchor
impl Send for PathAnchor
impl Sync for PathAnchor
impl Unpin for PathAnchor
impl UnwindSafe for PathAnchor
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