pub struct PropertiesAndState<S> {
pub properties: Properties,
pub state: S,
}
Expand description
The properties and state for an interface.
Fields§
§properties: Properties
Properties.
state: S
State.
Trait Implementations§
source§impl<S: Clone> Clone for PropertiesAndState<S>
impl<S: Clone> Clone for PropertiesAndState<S>
source§fn clone(&self) -> PropertiesAndState<S>
fn clone(&self) -> PropertiesAndState<S>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<S: Debug> Debug for PropertiesAndState<S>
impl<S: Debug> Debug for PropertiesAndState<S>
source§impl<S: PartialEq> PartialEq for PropertiesAndState<S>
impl<S: PartialEq> PartialEq for PropertiesAndState<S>
source§fn eq(&self, other: &PropertiesAndState<S>) -> bool
fn eq(&self, other: &PropertiesAndState<S>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<S> Update<S> for PropertiesAndState<S>
impl<S> Update<S> for PropertiesAndState<S>
source§fn update(&mut self, event: Event) -> Result<UpdateResult<'_, S>, UpdateError>
fn update(&mut self, event: Event) -> Result<UpdateResult<'_, S>, UpdateError>
Update state with the interface change event.
impl<S: Eq> Eq for PropertiesAndState<S>
impl<S> StructuralPartialEq for PropertiesAndState<S>
Auto Trait Implementations§
impl<S> Freeze for PropertiesAndState<S>where
S: Freeze,
impl<S> RefUnwindSafe for PropertiesAndState<S>where
S: RefUnwindSafe,
impl<S> Send for PropertiesAndState<S>where
S: Send,
impl<S> Sync for PropertiesAndState<S>where
S: Sync,
impl<S> Unpin for PropertiesAndState<S>where
S: Unpin,
impl<S> UnwindSafe for PropertiesAndState<S>where
S: 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