pub struct ObjectStoreStock { /* private fields */ }Implementations§
Source§impl ObjectStoreStock
impl ObjectStoreStock
pub fn new(data: &ObjectStore) -> ObjectStoreStock
pub fn object(&self, id: ObjectId) -> Option<&Object>
Sourcepub fn object_prototype(&self, object: &Object) -> Option<&Object>
pub fn object_prototype(&self, object: &Object) -> Option<&Object>
Returns the ‘prototype’ for this object which is the parent if its a custom object, or the original if its a stock modified object
pub fn objects(&self) -> impl Iterator<Item = &Object>
Trait Implementations§
Source§impl Debug for ObjectStoreStock
impl Debug for ObjectStoreStock
Source§impl Default for ObjectStoreStock
impl Default for ObjectStoreStock
Source§fn default() -> ObjectStoreStock
fn default() -> ObjectStoreStock
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ObjectStoreStock
impl<'de> Deserialize<'de> for ObjectStoreStock
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ObjectStoreStock
impl RefUnwindSafe for ObjectStoreStock
impl Send for ObjectStoreStock
impl Sync for ObjectStoreStock
impl Unpin for ObjectStoreStock
impl UnsafeUnpin for ObjectStoreStock
impl UnwindSafe for ObjectStoreStock
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