pub struct ModelElement<'a, Id> {
pub model: &'a NamedModel,
pub id: Id,
}Expand description
An element of the model: the model, and the entity’s id in it.
Fields§
§model: &'a NamedModel§id: IdTrait Implementations§
Source§impl<'a, Id: Clone> Clone for ModelElement<'a, Id>
impl<'a, Id: Clone> Clone for ModelElement<'a, Id>
Source§fn clone(&self) -> ModelElement<'a, Id>
fn clone(&self) -> ModelElement<'a, Id>
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 moreimpl<'a, Id: Copy> Copy for ModelElement<'a, Id>
Auto Trait Implementations§
impl<'a, Id> Freeze for ModelElement<'a, Id>where
Id: Freeze,
impl<'a, Id> RefUnwindSafe for ModelElement<'a, Id>where
Id: RefUnwindSafe,
impl<'a, Id> Send for ModelElement<'a, Id>where
Id: Send,
impl<'a, Id> Sync for ModelElement<'a, Id>where
Id: Sync,
impl<'a, Id> Unpin for ModelElement<'a, Id>where
Id: Unpin,
impl<'a, Id> UnsafeUnpin for ModelElement<'a, Id>where
Id: UnsafeUnpin,
impl<'a, Id> UnwindSafe for ModelElement<'a, Id>where
Id: UnwindSafe,
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