pub struct SnapshotFrom<'f, T: 'static> { /* private fields */ }Expand description
Like Snapshot, but created from the view’s data (what its load returned) with
T::from(&data), like a PageStateFrom. A snapshot that comes back with back/forward
keeps its value.
Trait Implementations§
Source§impl<T: Debug> Debug for SnapshotFrom<'_, T>
impl<T: Debug> Debug for SnapshotFrom<'_, T>
Source§impl<T> Deref for SnapshotFrom<'_, T>
impl<T> Deref for SnapshotFrom<'_, T>
Source§impl<T> DerefMut for SnapshotFrom<'_, T>
impl<T> DerefMut for SnapshotFrom<'_, T>
Source§impl<T> Drop for SnapshotFrom<'_, T>
impl<T> Drop for SnapshotFrom<'_, T>
Source§impl<S: 'static, D: 'static, T> FromView<S, D> for SnapshotFrom<'_, T>
impl<S: 'static, D: 'static, T> FromView<S, D> for SnapshotFrom<'_, T>
type Item<'f> = SnapshotFrom<'f, T>
fn from_view<'f>(cx: &'f ViewContext<'_, S>) -> SnapshotFrom<'f, T>
Auto Trait Implementations§
impl<'f, T> !RefUnwindSafe for SnapshotFrom<'f, T>
impl<'f, T> !Send for SnapshotFrom<'f, T>
impl<'f, T> !Sync for SnapshotFrom<'f, T>
impl<'f, T> !UnwindSafe for SnapshotFrom<'f, T>
impl<'f, T> Forget for SnapshotFrom<'f, T>
impl<'f, T> Freeze for SnapshotFrom<'f, T>
impl<'f, T> Move for SnapshotFrom<'f, T>
impl<'f, T> Unpin for SnapshotFrom<'f, T>
impl<'f, T> UnsafeUnpin for SnapshotFrom<'f, T>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> ErasedDestructor for Twhere
T: 'static,
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