pub struct BehaviourFunctionsReadOnlyView<ID: Clone, T: ReactiveInstance<ID>, FnType: Clone>(/* private fields */);
Implementations§
Source§impl<ID: Clone, T: ReactiveInstance<ID>, FnType: Clone> BehaviourFunctionsReadOnlyView<ID, T, FnType>
impl<ID: Clone, T: ReactiveInstance<ID>, FnType: Clone> BehaviourFunctionsReadOnlyView<ID, T, FnType>
pub fn to_component_behaviour_tys(&self) -> ComponentBehaviourTypeIds
pub fn to_entity_behaviour_tys(&self) -> EntityBehaviourTypeIds
pub fn to_relation_behaviour_tys(&self) -> RelationBehaviourTypeIds
pub fn get_factories(&self) -> BehaviourFactories<ID, T>
Methods from Deref<Target = ReadOnlyView<BehaviourTypeId, FnType>>§
pub fn capacity(&self) -> usize
pub fn capacity(&self) -> usize
Returns the number of elements the map can hold without reallocating.
pub fn contains_key<Q>(&'a self, key: &Q) -> bool
pub fn contains_key<Q>(&'a self, key: &Q) -> bool
Returns true
if the map contains a value for the specified key.
pub fn get<Q>(&'a self, key: &Q) -> Option<&'a V>
pub fn get<Q>(&'a self, key: &Q) -> Option<&'a V>
Returns a reference to the value corresponding to the key.
pub fn get_key_value<Q>(&'a self, key: &Q) -> Option<(&'a K, &'a V)>
pub fn get_key_value<Q>(&'a self, key: &Q) -> Option<(&'a K, &'a V)>
Returns the key-value pair corresponding to the supplied key.
pub fn iter(&'a self) -> impl Iterator<Item = (&'a K, &'a V)> + 'a
pub fn iter(&'a self) -> impl Iterator<Item = (&'a K, &'a V)> + 'a
An iterator visiting all key-value pairs in arbitrary order. The iterator element type is (&'a K, &'a V)
.
Trait Implementations§
Source§impl<ID: Clone, T: ReactiveInstance<ID>, FnType: Clone> Deref for BehaviourFunctionsReadOnlyView<ID, T, FnType>
impl<ID: Clone, T: ReactiveInstance<ID>, FnType: Clone> Deref for BehaviourFunctionsReadOnlyView<ID, T, FnType>
Source§impl<ID: Clone, T: ReactiveInstance<ID>, FnType: Clone> From<&BehaviourFunctions<ID, T, FnType>> for BehaviourFunctionsReadOnlyView<ID, T, FnType>
impl<ID: Clone, T: ReactiveInstance<ID>, FnType: Clone> From<&BehaviourFunctions<ID, T, FnType>> for BehaviourFunctionsReadOnlyView<ID, T, FnType>
Source§fn from(bf: &BehaviourFunctions<ID, T, FnType>) -> Self
fn from(bf: &BehaviourFunctions<ID, T, FnType>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<ID, T, FnType> Freeze for BehaviourFunctionsReadOnlyView<ID, T, FnType>
impl<ID, T, FnType> !RefUnwindSafe for BehaviourFunctionsReadOnlyView<ID, T, FnType>
impl<ID, T, FnType> Send for BehaviourFunctionsReadOnlyView<ID, T, FnType>where
FnType: Send,
impl<ID, T, FnType> Sync for BehaviourFunctionsReadOnlyView<ID, T, FnType>
impl<ID, T, FnType> Unpin for BehaviourFunctionsReadOnlyView<ID, T, FnType>
impl<ID, T, FnType> UnwindSafe for BehaviourFunctionsReadOnlyView<ID, T, FnType>where
FnType: 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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more