pub struct ShadowRoot {
pub mode: ShadowRootMode,
pub delegates_focus: bool,
pub clonable: bool,
pub serializable: bool,
pub slot_assignment: SlotAssignment,
pub declarative: bool,
}Expand description
A shadow root’s settings, as attachShadow takes them and a
declarative <template shadowrootmode> sets them.
Fields§
§mode: ShadowRootMode§delegates_focus: bool§clonable: bool§serializable: bool§slot_assignment: SlotAssignment§declarative: boolMade by the parser from a <template shadowrootmode>.
Implementations§
Source§impl ShadowRoot
impl ShadowRoot
Sourcepub fn open() -> ShadowRoot
pub fn open() -> ShadowRoot
An open root, with every flag off and named slot assignment.
Sourcepub fn closed() -> ShadowRoot
pub fn closed() -> ShadowRoot
A closed root, otherwise as ShadowRoot::open.
Trait Implementations§
Source§impl Clone for ShadowRoot
impl Clone for ShadowRoot
Source§fn clone(&self) -> ShadowRoot
fn clone(&self) -> ShadowRoot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ShadowRoot
Source§impl Debug for ShadowRoot
impl Debug for ShadowRoot
impl Eq for ShadowRoot
Source§impl PartialEq for ShadowRoot
impl PartialEq for ShadowRoot
impl StructuralPartialEq for ShadowRoot
Auto Trait Implementations§
impl Forget for ShadowRoot
impl Freeze for ShadowRoot
impl Move for ShadowRoot
impl RefUnwindSafe for ShadowRoot
impl Send for ShadowRoot
impl Sync for ShadowRoot
impl Unpin for ShadowRoot
impl UnsafeUnpin for ShadowRoot
impl UnwindSafe for ShadowRoot
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