pub enum Op {
Show 14 variants
Create {
id: u32,
kind: Kind,
},
AppendChild {
parent: u32,
child: u32,
},
InsertBefore {
parent: u32,
child: u32,
before: u32,
},
RemoveChild {
parent: u32,
child: u32,
},
SetText {
id: u32,
text: String,
},
SetStyle {
id: u32,
style: Box<Style>,
},
SetAttribute {
id: u32,
key: String,
value: AttrValue,
},
SetTransform {
id: u32,
has: bool,
},
SetTextStyle {
id: u32,
style: TextStyle,
},
ClearTextStyle {
id: u32,
},
SetStatic {
id: u32,
value: bool,
},
Hide {
id: u32,
},
Unhide {
id: u32,
},
Free {
id: u32,
},
}Expand description
All mutations expressible over the arena.
Variants§
Create
AppendChild
InsertBefore
RemoveChild
SetText
SetStyle
SetAttribute
SetTransform
SetTextStyle
Inline text styling (P5.1 SET_TEXT_STYLE). The native render path reads
this for the guarded-simple <Text> styling (P5.1b).
ClearTextStyle
Clear inline text styling (P6.2 CLEAR_TEXT_STYLE). Resets the node’s
text_styling to None so a styled→plain in-place <Text> rerender
stops rendering the stale native SGR. The additive sibling of
SetTransform { has: false } for the native text-style field.
SetStatic
Hide
Unhide
Free
Trait Implementations§
impl StructuralPartialEq for Op
Auto Trait Implementations§
impl Freeze for Op
impl RefUnwindSafe for Op
impl Send for Op
impl Sync for Op
impl Unpin for Op
impl UnsafeUnpin for Op
impl UnwindSafe for Op
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