Enum config_it::config::entity::EntityValue
source · pub enum EntityValue {
Trivial(TrivialEntityValue),
Complex(Arc<dyn Entity>),
}Variants§
Implementations§
source§impl EntityValue
impl EntityValue
pub fn as_entity(&self) -> &dyn Entity
pub fn as_entity_mut(&mut self) -> &mut dyn Entity
pub fn from_trivial<T: Copy + Entity>(value: T) -> Self
pub fn from_complex<T: Entity>(value: T) -> Self
Trait Implementations§
source§impl Clone for EntityValue
impl Clone for EntityValue
source§fn clone(&self) -> EntityValue
fn clone(&self) -> EntityValue
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 EntityValue
impl Debug for EntityValue
source§impl Entity for EntityValue
impl Entity for EntityValue
fn as_any(&self) -> &dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
fn as_serialize(&self) -> &dyn Serialize
fn deserialize(&mut self, de: &mut dyn Deserializer<'_>) -> Result<(), Error>
fn duplicated(&self) -> Arc<dyn Entity>
Auto Trait Implementations§
impl !RefUnwindSafe for EntityValue
impl Send for EntityValue
impl Sync for EntityValue
impl Unpin for EntityValue
impl !UnwindSafe for EntityValue
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