Struct rustc_ast::ast::BindingAnnotation
source · pub struct BindingAnnotation(pub ByRef, pub Mutability);
Expand description
Explicit binding annotations given in the HIR for a binding. Note that this is not the final binding mode that we infer after type inference.
Tuple Fields§
§0: ByRef
§1: Mutability
Implementations§
Trait Implementations§
source§impl Clone for BindingAnnotation
impl Clone for BindingAnnotation
source§fn clone(&self) -> BindingAnnotation
fn clone(&self) -> BindingAnnotation
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 BindingAnnotation
impl Debug for BindingAnnotation
source§impl<__D: Decoder> Decodable<__D> for BindingAnnotation
impl<__D: Decoder> Decodable<__D> for BindingAnnotation
source§impl<__E: Encoder> Encodable<__E> for BindingAnnotation
impl<__E: Encoder> Encodable<__E> for BindingAnnotation
source§impl<__CTX> HashStable<__CTX> for BindingAnnotationwhere
__CTX: HashStableContext,
impl<__CTX> HashStable<__CTX> for BindingAnnotationwhere
__CTX: HashStableContext,
fn hash_stable(&self, __hcx: &mut __CTX, __hasher: &mut StableHasher)
source§impl PartialEq<BindingAnnotation> for BindingAnnotation
impl PartialEq<BindingAnnotation> for BindingAnnotation
source§fn eq(&self, other: &BindingAnnotation) -> bool
fn eq(&self, other: &BindingAnnotation) -> bool
impl Copy for BindingAnnotation
impl Eq for BindingAnnotation
impl StructuralEq for BindingAnnotation
impl StructuralPartialEq for BindingAnnotation
Auto Trait Implementations§
impl RefUnwindSafe for BindingAnnotation
impl Send for BindingAnnotation
impl Sync for BindingAnnotation
impl Unpin for BindingAnnotation
impl UnwindSafe for BindingAnnotation
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: 2 bytes