Enum rustc_ast::ast::MacDelimiter
source · [−]pub enum MacDelimiter {
Parenthesis,
Bracket,
Brace,
}Variants
Parenthesis
Bracket
Brace
Implementations
sourceimpl MacDelimiter
impl MacDelimiter
pub fn to_token(self) -> Delimiter
pub fn from_token(delim: Delimiter) -> Option<MacDelimiter>
Trait Implementations
sourceimpl Clone for MacDelimiter
impl Clone for MacDelimiter
sourcefn clone(&self) -> MacDelimiter
fn clone(&self) -> MacDelimiter
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for MacDelimiter
impl Debug for MacDelimiter
sourceimpl<__D: Decoder> Decodable<__D> for MacDelimiter
impl<__D: Decoder> Decodable<__D> for MacDelimiter
sourceimpl<__CTX> HashStable<__CTX> for MacDelimiterwhere
__CTX: HashStableContext,
impl<__CTX> HashStable<__CTX> for MacDelimiterwhere
__CTX: HashStableContext,
fn hash_stable(&self, __hcx: &mut __CTX, __hasher: &mut StableHasher)
sourceimpl PartialEq<MacDelimiter> for MacDelimiter
impl PartialEq<MacDelimiter> for MacDelimiter
sourcefn eq(&self, other: &MacDelimiter) -> bool
fn eq(&self, other: &MacDelimiter) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
impl Copy for MacDelimiter
impl Eq for MacDelimiter
impl StructuralEq for MacDelimiter
impl StructuralPartialEq for MacDelimiter
Auto Trait Implementations
impl RefUnwindSafe for MacDelimiter
impl Send for MacDelimiter
impl Sync for MacDelimiter
impl Unpin for MacDelimiter
impl UnwindSafe for MacDelimiter
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
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: 1 byte
Size for each variant:
Parenthesis: 0 bytesBracket: 0 bytesBrace: 0 bytes