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
sourceimpl Clone for BindingAnnotation
impl Clone for BindingAnnotation
sourcefn clone(&self) -> BindingAnnotation
fn clone(&self) -> BindingAnnotation
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 moresourceimpl Debug for BindingAnnotation
impl Debug for BindingAnnotation
sourceimpl<__D: Decoder> Decodable<__D> for BindingAnnotation
impl<__D: Decoder> Decodable<__D> for BindingAnnotation
sourceimpl<__E: Encoder> Encodable<__E> for BindingAnnotation
impl<__E: Encoder> Encodable<__E> for BindingAnnotation
sourceimpl<__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)
sourceimpl PartialEq<BindingAnnotation> for BindingAnnotation
impl PartialEq<BindingAnnotation> for BindingAnnotation
sourcefn 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
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: 2 bytes