pub struct ModelSource {
pub instances: Vec<ModelInstance>,
}Expand description
In-memory model source.
Fields§
§instances: Vec<ModelInstance>Model instances exposed by the source.
Implementations§
Source§impl ModelSource
impl ModelSource
Sourcepub fn new(instances: Vec<ModelInstance>) -> Self
pub fn new(instances: Vec<ModelInstance>) -> Self
Create a new in-memory model source.
Trait Implementations§
Source§impl Clone for ModelSource
impl Clone for ModelSource
Source§fn clone(&self) -> ModelSource
fn clone(&self) -> ModelSource
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ModelSource
impl Debug for ModelSource
Source§impl Default for ModelSource
impl Default for ModelSource
Source§fn default() -> ModelSource
fn default() -> ModelSource
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ModelSource
impl RefUnwindSafe for ModelSource
impl Send for ModelSource
impl Sync for ModelSource
impl Unpin for ModelSource
impl UnsafeUnpin for ModelSource
impl UnwindSafe for ModelSource
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