pub struct StateDescriptor<S: 'static> {
pub id: S,
pub rust_name: &'static str,
pub has_data: bool,
}Expand description
Static descriptor for one generated state id.
Fields§
§id: STyped state identifier.
rust_name: &'static strRust variant name of the state marker.
has_data: boolWhether the state carries state_data.
Trait Implementations§
Source§impl<S: Clone + 'static> Clone for StateDescriptor<S>
impl<S: Clone + 'static> Clone for StateDescriptor<S>
Source§fn clone(&self) -> StateDescriptor<S>
fn clone(&self) -> StateDescriptor<S>
Returns a duplicate 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 + 'static> Debug for StateDescriptor<S>
impl<S: Debug + 'static> Debug for StateDescriptor<S>
Source§impl<S: PartialEq + 'static> PartialEq for StateDescriptor<S>
impl<S: PartialEq + 'static> PartialEq for StateDescriptor<S>
impl<S: Copy + 'static> Copy for StateDescriptor<S>
impl<S: Eq + 'static> Eq for StateDescriptor<S>
impl<S: 'static> StructuralPartialEq for StateDescriptor<S>
Auto Trait Implementations§
impl<S> Freeze for StateDescriptor<S>where
S: Freeze,
impl<S> RefUnwindSafe for StateDescriptor<S>where
S: RefUnwindSafe,
impl<S> Send for StateDescriptor<S>where
S: Send,
impl<S> Sync for StateDescriptor<S>where
S: Sync,
impl<S> Unpin for StateDescriptor<S>where
S: Unpin,
impl<S> UnsafeUnpin for StateDescriptor<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for StateDescriptor<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