Type Alias DelimSpan

Source
pub type DelimSpan = DelimSpan<Span>;

Aliased Type§

struct DelimSpan {
    pub open: SpanData<SyntaxContext>,
    pub close: SpanData<SyntaxContext>,
}

Fields§

§open: SpanData<SyntaxContext>§close: SpanData<SyntaxContext>

Implementations

§

impl<Span> DelimSpan<Span>
where Span: Copy,

pub fn from_single(sp: Span) -> DelimSpan<Span>

pub fn from_pair(open: Span, close: Span) -> DelimSpan<Span>

Trait Implementations

§

impl<S> Clone for DelimSpan<S>
where S: Clone,

§

fn clone(&self) -> DelimSpan<S>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl<S> Debug for DelimSpan<S>
where S: Debug,

§

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

Formats the value using the given formatter. Read more
§

impl<S> PartialEq for DelimSpan<S>
where S: PartialEq,

§

fn eq(&self, other: &DelimSpan<S>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl<S> Copy for DelimSpan<S>
where S: Copy,

§

impl<S> StructuralPartialEq for DelimSpan<S>