Struct Assertion

pub struct Assertion { pub span: Span, pub kind: AssertionKind }

A single zero-width assertion.

Fields

span: Span

The span of this assertion.

kind: AssertionKind

The assertion kind, e.g., \b or ^.

Trait Implementations

impl Clone for Assertion

fn clone(&self) -> Self

impl Debug for Assertion

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Eq for Assertion

impl PartialEq for Assertion

fn eq(&self, other: &Self) -> bool

impl StructuralPartialEq for Assertion

Auto Trait Implementations

impl Freeze for Assertion

impl RefUnwindSafe for Assertion

impl Send for Assertion

impl Sync for Assertion

impl Unpin for Assertion

impl UnsafeUnpin for Assertion

impl UnwindSafe for Assertion

Blanket Implementations

impl<T> Any for Assertion where T: 'static + ?Sized,

impl<T> Borrow<T> for Assertion where T: ?Sized,

impl<T> BorrowMut<T> for Assertion where T: ?Sized,

impl<T> CloneToUninit for Assertion where T: Clone,

impl<T> From<T> for Assertion

impl<T> ToOwned for Assertion where T: Clone,

impl<T, U> Into<U> for Assertion where U: From<T>,

impl<T, U> TryFrom<U> for Assertion where U: Into<T>,

impl<T, U> TryInto<U> for Assertion where U: TryFrom<T>,