#[repr(transparent)]pub struct ViewFnPtr(pub u32);Expand description
The index of a view as defined in a module’s view lists.
Unlike reducers and procedures, the module maintains two lists for views.
One for ViewContext and the other for AnonymousViewContext.
As such, this index does not uniquely identify a view on its own.
You must know which list this index refers to.
Tuple Fields§
§0: u32Implementations§
Trait Implementations§
Source§impl Ord for ViewFnPtr
impl Ord for ViewFnPtr
Source§impl PartialOrd for ViewFnPtr
impl PartialOrd for ViewFnPtr
impl Copy for ViewFnPtr
impl Eq for ViewFnPtr
impl IsEnabled for ViewFnPtr
impl StructuralPartialEq for ViewFnPtr
Auto Trait Implementations§
impl Freeze for ViewFnPtr
impl RefUnwindSafe for ViewFnPtr
impl Send for ViewFnPtr
impl Sync for ViewFnPtr
impl Unpin for ViewFnPtr
impl UnsafeUnpin for ViewFnPtr
impl UnwindSafe for ViewFnPtr
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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