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 Patchwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const RcInner<RichDocument> is !null: Freeze,
PhantomData<RcInner<RichDocument>>: Freeze,
PhantomData<SemanticId>: Freeze,
*const GraphicProps is !null: Freeze,
PhantomData<GraphicProps>: Freeze,
*const FileConfig is !null: Freeze,
PhantomData<FileConfig>: Freeze,
PhantomData<String>: Freeze,
*const Style is !null: Freeze,
PhantomData<Style>: Freeze,
*const Semantics is !null: Freeze,
PhantomData<Semantics>: Freeze,
impl Move for Patch
impl RefUnwindSafe for Patch
impl Unpin for Patch
impl UnsafeUnpin for Patchwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const RcInner<RichDocument> is !null: UnsafeUnpin,
PhantomData<RcInner<RichDocument>>: UnsafeUnpin,
PhantomData<SemanticId>: UnsafeUnpin,
*const GraphicProps is !null: UnsafeUnpin,
PhantomData<GraphicProps>: UnsafeUnpin,
*const FileConfig is !null: UnsafeUnpin,
PhantomData<FileConfig>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const Style is !null: UnsafeUnpin,
PhantomData<Style>: UnsafeUnpin,
*const Semantics is !null: UnsafeUnpin,
PhantomData<Semantics>: UnsafeUnpin,
impl UnwindSafe for Patchwhere
RawVecInner: UnwindSafe,
Rc<RichDocument>: UnwindSafe,
BoxRaw<GraphicProps>: UnwindSafe,
BoxRaw<FileConfig>: UnwindSafe,
BoxRaw<Style>: UnwindSafe,
BoxRaw<Semantics>: 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