pub struct BindingSchema { /* private fields */ }Implementations§
Source§impl BindingSchema
impl BindingSchema
pub fn try_new(slots: Vec<SlotDescriptor>) -> Result<Self>
pub fn slots(&self) -> &[SlotDescriptor]
pub fn slot(&self, id: SlotId) -> Option<&SlotDescriptor>
pub fn slot_by_name(&self, name: &str) -> Option<&SlotDescriptor>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl Clone for BindingSchema
impl Clone for BindingSchema
Source§impl Debug for BindingSchema
impl Debug for BindingSchema
impl Eq for BindingSchema
Source§impl PartialEq for BindingSchema
impl PartialEq for BindingSchema
impl StructuralPartialEq for BindingSchema
Auto Trait Implementations§
impl Freeze for BindingSchema
impl RefUnwindSafe for BindingSchema
impl Send for BindingSchema
impl Sync for BindingSchema
impl Unpin for BindingSchema
impl UnsafeUnpin for BindingSchema
impl UnwindSafe for BindingSchema
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more