pub struct Binding { /* private fields */ }Expand description
One opaque dependency identity in a session’s complete sticky binding set.
Implementations§
Source§impl Binding
impl Binding
Sourcepub fn new(name: String, identity: String) -> Result<Self, BindingError>
pub fn new(name: String, identity: String) -> Result<Self, BindingError>
Creates a complete non-empty binding.
§Errors
BindingError if either component is empty. A binding is the pair that
lets a session recognise the same dependency across successor Runs, and
half of one cannot do that: an empty name has nothing to match against,
and an empty identity would compare equal to every other empty identity.
Trait Implementations§
impl Eq for Binding
Source§impl Ord for Binding
impl Ord for Binding
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Binding
impl PartialOrd for Binding
impl StructuralPartialEq for Binding
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