pub struct Binding {
pub name: String,
pub kind: BindingKind,
pub definition: TextRange,
pub visible: TextRange,
pub ty: Type,
}Expand description
A variable.
Fields§
§name: String§kind: BindingKind§definition: TextRangeThe name where it is declared.
visible: TextRangeWhere it can be used: the group of a parameter, the rest of the rule of an alias, the whole map for a constant.
ty: TypeThe type, where known. An untyped group parameter has the type of the first call that gives one.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Binding
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