pub struct RequiredNodeStateConfig { /* private fields */ }Expand description
RequiredNodeStateConfig: a state a node class declares in its
$config’s stateConfigs (LexicalNode::state_configs), which its
type knows before any node reads it; a flat one serializes at the top
level of the node’s JSON instead of under "$".
Implementations§
Source§impl RequiredNodeStateConfig
impl RequiredNodeStateConfig
Sourcepub fn new<V: Clone + 'static>(
state_config: &StateConfig<V>,
flat: bool,
) -> Self
pub fn new<V: Clone + 'static>( state_config: &StateConfig<V>, flat: bool, ) -> Self
stateConfig or {stateConfig, flat}.
Trait Implementations§
Source§impl Clone for RequiredNodeStateConfig
impl Clone for RequiredNodeStateConfig
Auto Trait Implementations§
impl !RefUnwindSafe for RequiredNodeStateConfig
impl !Send for RequiredNodeStateConfig
impl !Sync for RequiredNodeStateConfig
impl !UnwindSafe for RequiredNodeStateConfig
impl Forget for RequiredNodeStateConfig
impl Freeze for RequiredNodeStateConfig
impl Move for RequiredNodeStateConfig
impl Unpin for RequiredNodeStateConfig
impl UnsafeUnpin for RequiredNodeStateConfig
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