pub enum AnchorKind {
Start,
End,
}Expand description
Position-anchor variety used by Expr::Anchor.
Variants§
Start
^ — start of input (single-line) or start of any line
(multiline). Multiline routing is decided at compile time
by the caller; the AST only records that the anchor exists.
End
$ — end of input (single-line) or end of any line
(multiline).
Trait Implementations§
Source§impl Clone for AnchorKind
impl Clone for AnchorKind
Source§fn clone(&self) -> AnchorKind
fn clone(&self) -> AnchorKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AnchorKind
Source§impl Debug for AnchorKind
impl Debug for AnchorKind
impl Eq for AnchorKind
Source§impl PartialEq for AnchorKind
impl PartialEq for AnchorKind
Source§fn eq(&self, other: &AnchorKind) -> bool
fn eq(&self, other: &AnchorKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AnchorKind
Auto Trait Implementations§
impl Freeze for AnchorKind
impl RefUnwindSafe for AnchorKind
impl Send for AnchorKind
impl Sync for AnchorKind
impl Unpin for AnchorKind
impl UnsafeUnpin for AnchorKind
impl UnwindSafe for AnchorKind
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