Enum diskplan_schema::Binding
source · pub enum Binding<'t> {
Static(&'t str),
Dynamic(Identifier<'t>),
}
Expand description
How an entry is bound in a schema, either to a static fixed name or to a variable
Variants§
Static(&'t str)
A static, fixed name
Dynamic(Identifier<'t>)
A dynamic name bound to the given variable
Trait Implementations§
source§impl<'t> Ord for Binding<'t>
impl<'t> Ord for Binding<'t>
1.21.0 · 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
source§impl<'t> PartialEq for Binding<'t>
impl<'t> PartialEq for Binding<'t>
source§impl<'t> PartialOrd for Binding<'t>
impl<'t> PartialOrd for Binding<'t>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<'t> Eq for Binding<'t>
impl<'t> StructuralEq for Binding<'t>
impl<'t> StructuralPartialEq for Binding<'t>
Auto Trait Implementations§
impl<'t> RefUnwindSafe for Binding<'t>
impl<'t> Send for Binding<'t>
impl<'t> Sync for Binding<'t>
impl<'t> Unpin for Binding<'t>
impl<'t> UnwindSafe for Binding<'t>
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