DelimSpan in rustc_ast::tokenstream - Rust (original) (raw)
pub struct DelimSpan {
pub open: Span,
pub close: Span,
}Fields§
§open: [Span](../../rustc%5Fspan/span%5Fencoding/struct.Span.html "struct rustc_span::span_encoding::Span")§close: [Span](../../rustc%5Fspan/span%5Fencoding/struct.Span.html "struct rustc_span::span_encoding::Span")
Implementations§
Trait Implementations§
impl Clone for DelimSpan
impl Debug for DelimSpan
impl<__D: SpanDecoder> Decodable<__D> for DelimSpan
fn decode(__decoder: &mut __D) -> Self
impl<__E: SpanEncoder> Encodable<__E> for DelimSpan
fn encode(&self, __encoder: &mut __E)
impl<__CTX> HashStable<__CTX> for DelimSpan
fn hash_stable(&self, __hcx: &mut __CTX, __hasher: &mut StableHasher)
impl<V: MutVisitor> MutVisitable for DelimSpan
type Extra = ()
fn visit_mut(&mut self, visitor: &mut V, _extra: Self::Extra) -> V::Result
impl<__V> MutWalkable<__V> for DelimSpan
fn walk_mut(&mut self, __visitor: &mut __V)
impl PartialEq for DelimSpan
fn eq(&self, other: &DelimSpan) -> bool
Tests for self and other values to be equal, and is used by ==.
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<'a, V: Visitor<'a>> Visitable<'a, V> for DelimSpan
type Extra = ()
fn visit(&'a self, visitor: &mut V, _extra: Self::Extra) -> V::Result
impl<'__ast, __V> Walkable<'__ast, __V> for DelimSpan
fn walk_ref(&'__ast self, __visitor: &mut __V) -> __V::Result
impl Copy for DelimSpan
impl StructuralPartialEq for DelimSpan
Auto Trait Implementations§
impl DynSend for DelimSpan
impl DynSync for DelimSpan
impl Freeze for DelimSpan
impl RefUnwindSafe for DelimSpan
impl Send for DelimSpan
impl Sync for DelimSpan
impl Unpin for DelimSpan
impl UnwindSafe for DelimSpan
Blanket Implementations§
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 16 bytes