pub struct Binding {
pub name: String,
pub decl: Span,
pub kind: BindingKind,
pub scope: Span,
pub public: bool,
}Fields§
§name: String§decl: SpanThe span of the declared name token, not of the whole statement.
kind: BindingKind§scope: SpanByte range of the scope this binding lives in; a rename’s safety checks need it to reason about capture.
public: boolpub def / pub type / pub enum (D12) — part of the module’s API, so
importers this file cannot see may depend on the name.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Binding
impl RefUnwindSafe for Binding
impl Send for Binding
impl Sync for Binding
impl Unpin for Binding
impl UnsafeUnpin for Binding
impl UnwindSafe for Binding
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more