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> PartialOrd for Binding<'t>
impl<'t> PartialOrd for Binding<'t>
impl<'t> Eq for Binding<'t>
impl<'t> StructuralPartialEq for Binding<'t>
Auto Trait Implementations§
impl<'t> Freeze for Binding<'t>
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