Trait dacquiri::prelude::ConstraintT
source · pub trait ConstraintT: PrivateConstraintT + Sized {
// Required methods
fn add_entity<T, const ETAG: EntityTag>(
self,
entity: T
) -> ConstraintResult<EntityProof<ETAG, T, Self>>
where T: ConstraintEntity + 'static;
fn get_entity<T, const TAG: EntityTag>(&self) -> &T
where T: ConstraintEntity + 'static,
Self: HasEntityWithType<TAG, T>;
fn get_entity_mut<T, const TAG: EntityTag>(&mut self) -> &mut T
where T: ConstraintEntity + 'static,
Self: HasEntityWithType<TAG, T>;
fn try_get_entity<T, const TAG: EntityTag>(&self) -> ConstraintResult<&T>
where T: ConstraintEntity + 'static;
fn try_get_entity_mut<T, const TAG: EntityTag>(
&mut self
) -> ConstraintResult<&mut T>
where T: ConstraintEntity + 'static;
}
Required Methods§
fn add_entity<T, const ETAG: EntityTag>( self, entity: T ) -> ConstraintResult<EntityProof<ETAG, T, Self>>where T: ConstraintEntity + 'static,
fn get_entity<T, const TAG: EntityTag>(&self) -> &Twhere T: ConstraintEntity + 'static, Self: HasEntityWithType<TAG, T>,
fn get_entity_mut<T, const TAG: EntityTag>(&mut self) -> &mut Twhere T: ConstraintEntity + 'static, Self: HasEntityWithType<TAG, T>,
fn try_get_entity<T, const TAG: EntityTag>(&self) -> ConstraintResult<&T>where T: ConstraintEntity + 'static,
fn try_get_entity_mut<T, const TAG: EntityTag>( &mut self ) -> ConstraintResult<&mut T>where T: ConstraintEntity + 'static,
Object Safety§
This trait is not object safe.