pub enum AnimalEntityWrapper {
Frog(FrogModel),
Cat(CatModel),
}Variants§
Trait Implementations§
source§impl Clone for AnimalEntityWrapper
impl Clone for AnimalEntityWrapper
source§fn clone(&self) -> AnimalEntityWrapper
fn clone(&self) -> AnimalEntityWrapper
Returns a copy 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 AnimalEntityWrapper
impl Debug for AnimalEntityWrapper
source§impl EntityName for AnimalEntityWrapper
impl EntityName for AnimalEntityWrapper
fn entity_name(&self) -> &'static str
source§impl From<AnimalEntityWrapper> for Option<CatModel>
impl From<AnimalEntityWrapper> for Option<CatModel>
source§fn from(value: AnimalEntityWrapper) -> Self
fn from(value: AnimalEntityWrapper) -> Self
Converts to this type from the input type.
source§impl From<CatModel> for AnimalEntityWrapper
impl From<CatModel> for AnimalEntityWrapper
impl EntityWrapperTrait for AnimalEntityWrapper
Auto Trait Implementations§
impl RefUnwindSafe for AnimalEntityWrapper
impl Send for AnimalEntityWrapper
impl Sync for AnimalEntityWrapper
impl Unpin for AnimalEntityWrapper
impl UnwindSafe for AnimalEntityWrapper
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