Enum rustc_ast::ast::MacDelimiter
source · pub enum MacDelimiter {
Parenthesis,
Bracket,
Brace,
}
Variants§
Implementations§
source§impl MacDelimiter
impl MacDelimiter
pub fn to_token(self) -> Delimiter
pub fn from_token(delim: Delimiter) -> Option<MacDelimiter>
Trait Implementations§
source§impl Clone for MacDelimiter
impl Clone for MacDelimiter
source§fn clone(&self) -> MacDelimiter
fn clone(&self) -> MacDelimiter
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MacDelimiter
impl Debug for MacDelimiter
source§impl<__D: Decoder> Decodable<__D> for MacDelimiter
impl<__D: Decoder> Decodable<__D> for MacDelimiter
source§impl<__E: Encoder> Encodable<__E> for MacDelimiter
impl<__E: Encoder> Encodable<__E> for MacDelimiter
source§impl<__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)
source§impl PartialEq<MacDelimiter> for MacDelimiter
impl PartialEq<MacDelimiter> for MacDelimiter
source§fn eq(&self, other: &MacDelimiter) -> bool
fn eq(&self, other: &MacDelimiter) -> bool
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§
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