pub struct StaticBinding {
pub name: Symbol,
pub binding: Binding,
pub pos: u32,
}Expand description
One static binding, with the source position of its FIRST definition.
The position is carried because nix’s duplicate message names two of them —
attribute 'a.b' already defined at «string»:1:3 for the first, and the
error’s own location for the second.
Fields§
§name: SymbolThe folded attribute name.
binding: BindingWhat is bound.
pos: u32Byte offset where this name was FIRST defined.
Trait Implementations§
Source§impl Clone for StaticBinding
impl Clone for StaticBinding
Source§fn clone(&self) -> StaticBinding
fn clone(&self) -> StaticBinding
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for StaticBinding
impl !Send for StaticBinding
impl !Sync for StaticBinding
impl !UnwindSafe for StaticBinding
impl Freeze for StaticBinding
impl Unpin for StaticBinding
impl UnsafeUnpin for StaticBinding
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