pub struct DynModifierElement(/* private fields */);Expand description
A type-erased modifier element, as a modifier holds it: a plain element’s value in place, or a shared element that makes a node. A plain element takes no allocation of its own.
Implementations§
Source§impl DynModifierElement
impl DynModifierElement
Sourcepub fn provides_composition_locals(&self) -> bool
pub fn provides_composition_locals(&self) -> bool
Whether this element has composition locals for its content. A plain element has none, which this tells without a call.
Trait Implementations§
Source§impl Clone for DynModifierElement
impl Clone for DynModifierElement
Source§impl Debug for DynModifierElement
impl Debug for DynModifierElement
Source§impl Deref for DynModifierElement
impl Deref for DynModifierElement
Source§impl<'a> From<&'a DynModifierElement> for HeldElement<'a>
impl<'a> From<&'a DynModifierElement> for HeldElement<'a>
Source§fn from(element: &'a DynModifierElement) -> Self
fn from(element: &'a DynModifierElement) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for DynModifierElement
impl !Send for DynModifierElement
impl !Sync for DynModifierElement
impl !UnwindSafe for DynModifierElement
impl Forget for DynModifierElement
impl Freeze for DynModifierElement
impl Move for DynModifierElement
impl Unpin for DynModifierElement
impl UnsafeUnpin for DynModifierElement
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