pub struct ModelSet { /* private fields */ }Expand description
An ordered collection of Model definitions.
ModelSet is the primary container used to hold all models in a schema.
Models are stored in insertion order and can be iterated over by reference
or by value.
§Examples
use toasty_core::schema::app::{Model, ModelSet};
let set = ModelSet::new();
assert_eq!((&set).into_iter().len(), 0);Implementations§
Trait Implementations§
Source§impl<'a> IntoIterator for &'a ModelSet
impl<'a> IntoIterator for &'a ModelSet
Auto Trait Implementations§
impl Freeze for ModelSet
impl RefUnwindSafe for ModelSet
impl Send for ModelSet
impl Sync for ModelSet
impl Unpin for ModelSet
impl UnsafeUnpin for ModelSet
impl UnwindSafe for ModelSet
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