#[repr(transparent)]pub(crate) struct Slottable(pub Dom<Node>);
Expand description
https://dom.spec.whatwg.org/#concept-slotable
The contained node is assumed to be either Element
or Text
This field is public to make it easy to construct slottables. As such, it is possible to put Nodes that are not slottables in there. Using a Slottable like this will quickly lead to a panic.
Tuple Fields§
§0: Dom<Node>
Implementations§
Source§impl Slottable
impl Slottable
Sourcepub(crate) fn find_a_slot(
&self,
open_flag: bool,
) -> Option<DomRoot<HTMLSlotElement>>
pub(crate) fn find_a_slot( &self, open_flag: bool, ) -> Option<DomRoot<HTMLSlotElement>>
Sourcepub(crate) fn assign_a_slot(&self)
pub(crate) fn assign_a_slot(&self)
fn node(&self) -> &Node
pub(crate) fn assigned_slot(&self) -> Option<DomRoot<HTMLSlotElement>>
pub(crate) fn set_assigned_slot(&self, assigned_slot: Option<&HTMLSlotElement>)
pub(crate) fn set_manual_slot_assignment( &self, manually_assigned_slot: Option<&HTMLSlotElement>, )
pub(crate) fn manual_slot_assignment(&self) -> Option<DomRoot<HTMLSlotElement>>
fn name(&self) -> DOMString
Trait Implementations§
Source§impl Initialize for Slottable
impl Initialize for Slottable
Source§impl MallocSizeOf for Slottable
impl MallocSizeOf for Slottable
Source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.
impl StructuralPartialEq for Slottable
Auto Trait Implementations§
impl Freeze for Slottable
impl !RefUnwindSafe for Slottable
impl !Send for Slottable
impl !Sync for Slottable
impl Unpin for Slottable
impl !UnwindSafe for Slottable
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Filterable for T
impl<T> Filterable for T
Source§fn filterable(
self,
filter_name: &'static str,
) -> RequestFilterDataProvider<T, fn(_: DataRequest<'_>) -> bool>
fn filterable( self, filter_name: &'static str, ) -> RequestFilterDataProvider<T, fn(_: DataRequest<'_>) -> bool>
Creates a filterable data provider with the given name for debugging. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
Source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
Source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
Source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert