pub struct Description {
pub props: SemanticsProperties,
pub merging: bool,
}Expand description
What a Semantics wrapper asks the walk to do with its subtree’s annotations.
Returned by Widget::describes and read in one place, the way a
ModalBarrier is: the subtree is walked exactly as
usual and what it produced is reconciled afterwards. Doing it after rather than instead
is what makes it exact — a widget deep inside annotates itself without knowing anything
is speaking for it.
Fields§
§props: SemanticsPropertiesWhat the wrapper says about its child.
merging: boolReplace the subtree’s own annotations with this one instead of adding to them.
Trait Implementations§
Source§impl Clone for Description
impl Clone for Description
Source§impl Debug for Description
impl Debug for Description
Source§impl PartialEq for Description
impl PartialEq for Description
impl StructuralPartialEq for Description
Auto Trait Implementations§
impl Freeze for Description
impl RefUnwindSafe for Description
impl Send for Description
impl Sync for Description
impl Unpin for Description
impl UnsafeUnpin for Description
impl UnwindSafe for Description
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