pub struct StateConfig<V>(/* private fields */);Expand description
StateConfig: what create_state returns, for get_state and
set_state. Clones are the same config: nodes tell configs apart by
identity, as JS does.
Implementations§
Source§impl<V: Clone + 'static> StateConfig<V>
impl<V: Clone + 'static> StateConfig<V>
Sourcepub fn default_value(&self) -> V
pub fn default_value(&self) -> V
defaultValue.
Sourcepub fn reset_on_copy_node(&self) -> bool
pub fn reset_on_copy_node(&self) -> bool
resetOnCopyNode.
Sourcepub fn schema(&self) -> Option<SerializationSchema>
pub fn schema(&self) -> Option<SerializationSchema>
schema: the schema parse was given as, when it was one.
Sourcepub fn erased(&self) -> AnyStateConfig
pub fn erased(&self) -> AnyStateConfig
This config without its value type (AnyStateConfig).
Trait Implementations§
Source§impl<V> Clone for StateConfig<V>
impl<V> Clone for StateConfig<V>
Auto Trait Implementations§
impl<V> !RefUnwindSafe for StateConfig<V>
impl<V> !Send for StateConfig<V>
impl<V> !Sync for StateConfig<V>
impl<V> !UnwindSafe for StateConfig<V>
impl<V> Forget for StateConfig<V>
impl<V> Freeze for StateConfig<V>
impl<V> Move for StateConfig<V>
impl<V> Unpin for StateConfig<V>
impl<V> UnsafeUnpin for StateConfig<V>where
Rc<StateConfigInner<V>>: UnsafeUnpin,
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