pub struct ObjectContainer { /* private fields */ }Expand description
Wraps the corresponding Model I/O object container counterpart.
Implementations§
Source§impl ObjectContainer
impl ObjectContainer
Sourcepub fn new() -> Result<Self>
pub fn new() -> Result<Self>
Wraps the corresponding Model I/O initializer for the wrapped Model I/O object container counterpart.
Sourcepub fn count(&self) -> usize
pub fn count(&self) -> usize
Calls the corresponding Model I/O method on the wrapped Model I/O object container counterpart.
Sourcepub fn object_at(&self, index: usize) -> Option<Object>
pub fn object_at(&self, index: usize) -> Option<Object>
Calls the corresponding Model I/O method on the wrapped Model I/O object container counterpart.
Sourcepub fn objects(&self) -> Vec<Object>
pub fn objects(&self) -> Vec<Object>
Calls the corresponding Model I/O method on the wrapped Model I/O object container counterpart.
Sourcepub fn add_object(&self, object: &Object)
pub fn add_object(&self, object: &Object)
Calls the corresponding Model I/O method on the wrapped Model I/O object container counterpart.
Sourcepub fn remove_object(&self, object: &Object)
pub fn remove_object(&self, object: &Object)
Calls the corresponding Model I/O method on the wrapped Model I/O object container counterpart.
Trait Implementations§
Source§impl Clone for ObjectContainer
impl Clone for ObjectContainer
Source§fn clone(&self) -> ObjectContainer
fn clone(&self) -> ObjectContainer
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ObjectContainer
impl Debug for ObjectContainer
impl Component for ObjectContainer
Auto Trait Implementations§
impl Freeze for ObjectContainer
impl RefUnwindSafe for ObjectContainer
impl !Send for ObjectContainer
impl !Sync for ObjectContainer
impl Unpin for ObjectContainer
impl UnsafeUnpin for ObjectContainer
impl UnwindSafe for ObjectContainer
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