[−][src]Struct kudo::Single
Used to get a single immutable instance of a component from the world. If there are multiple of the component in the world an arbitrary instance is returned.
Fields
borrow: RwLockReadGuard<'world_borrow, Vec<T>>
Implementations
impl<'world_borrow, 'a, T> Single<'world_borrow, T>
[src]
Trait Implementations
impl<'world_borrow, T> Deref for Single<'world_borrow, T>
[src]
impl<'world_borrow, T: 'static> TopLevelQuery for Single<'world_borrow, T>
[src]
Auto Trait Implementations
impl<'world_borrow, T> RefUnwindSafe for Single<'world_borrow, T>
impl<'world_borrow, T> !Send for Single<'world_borrow, T>
impl<'world_borrow, T> Sync for Single<'world_borrow, T> where
T: Sync,
T: Sync,
impl<'world_borrow, T> Unpin for Single<'world_borrow, T>
impl<'world_borrow, T> UnwindSafe for Single<'world_borrow, T>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,