pub struct Boundary {
pub kind: BoundaryKind,
pub span: Span,
}
Expand description
A word boundary or anchor, which we combine under the term boundary.
All boundaries use a variation of the %
sigil, so they are easy to
remember.
Fields§
§kind: BoundaryKind
§span: Span
Implementations§
Source§impl Boundary
impl Boundary
pub fn new(kind: BoundaryKind, span: Span) -> Self
pub fn kind(&self) -> BoundaryKind
Trait Implementations§
impl Copy for Boundary
impl Eq for Boundary
impl StructuralPartialEq for Boundary
Auto Trait Implementations§
impl Freeze for Boundary
impl RefUnwindSafe for Boundary
impl Send for Boundary
impl Sync for Boundary
impl Unpin for Boundary
impl UnwindSafe for Boundary
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