pub enum Patch {
Show 24 variants
Text(Change<String>),
TextKind(Change<TextKind>),
Selectable(Change<bool>),
Label(Change<String>),
Enabled(Change<bool>),
Value {
value: Change<String>,
revision: u64,
},
RichDocument {
document: Change<Rc<RichDocument>>,
revision: u64,
},
SelectSelection {
keys: Change<Vec<SemanticId>>,
revision: u64,
},
Purpose(Change<Purpose>),
Multiline(Change<bool>),
Checked(Change<bool>),
CheckMode(Change<CheckMode>),
Source {
source: Change<String>,
revision: u64,
},
Alternative(Change<Option<String>>),
Graphic(Change<Box<GraphicProps>>),
File {
configuration: Change<Box<FileConfig>>,
revision: u64,
},
Target(Change<String>),
Classes(Change<Vec<String>>),
Style(Change<Box<Style>>),
Role(Change<Option<Role>>),
Name(Change<Option<String>>),
Focus(Change<FocusMode>),
Item(Change<Option<ItemPosition>>),
Semantics(Change<Option<Box<Semantics>>>),
}Variants§
Text(Change<String>)
TextKind(Change<TextKind>)
Selectable(Change<bool>)
Label(Change<String>)
Enabled(Change<bool>)
Value
RichDocument
SelectSelection
Purpose(Change<Purpose>)
Multiline(Change<bool>)
Checked(Change<bool>)
An explicit Set/Clear also synchronizes the host control property when the semantic value is equal (for example a rejected native toggle).
CheckMode(Change<CheckMode>)
Source
Alternative(Change<Option<String>>)
Graphic(Change<Box<GraphicProps>>)
File
Target(Change<String>)
Classes(Change<Vec<String>>)
Style(Change<Box<Style>>)
Role(Change<Option<Role>>)
Name(Change<Option<String>>)
Focus(Change<FocusMode>)
Item(Change<Option<ItemPosition>>)
Semantics(Change<Option<Box<Semantics>>>)
Trait Implementations§
impl StructuralPartialEq for Patch
Auto Trait Implementations§
impl !Send for Patch
impl !Sync for Patch
impl Forget for Patch
impl Freeze for Patch
impl RefUnwindSafe for Patch
impl Unpin for Patch
impl UnsafeUnpin for Patch
impl UnwindSafe for Patch
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