Struct shipyard::UniqueView
source · [−]pub struct UniqueView<'a, T: Unique> { /* private fields */ }
Expand description
Shared view over a unique component storage.
Implementations
sourceimpl<T: Unique> UniqueView<'_, T>
impl<T: Unique> UniqueView<'_, T>
sourcepub fn clone(unique: &Self) -> Self
pub fn clone(unique: &Self) -> Self
Duplicates the UniqueView
.
sourceimpl<T: Unique> UniqueView<'_, T>
impl<T: Unique> UniqueView<'_, T>
sourcepub fn is_inserted(&self) -> bool
pub fn is_inserted(&self) -> bool
Returns true
if the component was inserted before the last clear_inserted
call.
sourcepub fn is_modified(&self) -> bool
pub fn is_modified(&self) -> bool
Returns true
is the component was modified since the last clear_modified
call.
sourcepub fn is_inserted_or_modified(&self) -> bool
pub fn is_inserted_or_modified(&self) -> bool
Returns true
if the component was inserted or modified since the last clear_inserted
or clear_modified
call.
Trait Implementations
sourceimpl<T: Unique> AsRef<T> for UniqueView<'_, T>
impl<T: Unique> AsRef<T> for UniqueView<'_, T>
sourceimpl<'a, T: Send + Sync + Unique> BorrowInfo for UniqueView<'a, T>
impl<'a, T: Send + Sync + Unique> BorrowInfo for UniqueView<'a, T>
sourcefn borrow_info(info: &mut Vec<TypeInfo>)
fn borrow_info(info: &mut Vec<TypeInfo>)
This information is used during workload creation to determine which systems can run in parallel. Read more
sourceimpl<T: Debug + Unique> Debug for UniqueView<'_, T>
impl<T: Debug + Unique> Debug for UniqueView<'_, T>
sourceimpl<T: Unique> Deref for UniqueView<'_, T>
impl<T: Unique> Deref for UniqueView<'_, T>
sourceimpl<T: Send + Sync + Unique> IntoBorrow for UniqueView<'_, T>
impl<T: Send + Sync + Unique> IntoBorrow for UniqueView<'_, T>
type Borrow = UniqueViewBorrower<T>
type Borrow = UniqueViewBorrower<T>
Helper type almost allowing GAT on stable.
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for UniqueView<'a, T> where
T: RefUnwindSafe,
impl<'a, T> Send for UniqueView<'a, T> where
T: Sync,
impl<'a, T> Sync for UniqueView<'a, T> where
T: Sync,
impl<'a, T> Unpin for UniqueView<'a, T>
impl<'a, T> UnwindSafe for UniqueView<'a, T> where
T: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more