pub enum SlotContentKind {
AssignedOnly,
WithFallback,
}
Expand description
An enum which determines whether SlotElement::assigned_nodes / SlotElement::assigned_elements will return the fallback content when nothing has been assigned to the slot.
Variants§
AssignedOnly
Will only return content assigned.
WithFallback
Will return the fallback content if nothing has been assigned.
Trait Implementations§
Source§impl Clone for SlotContentKind
impl Clone for SlotContentKind
Source§fn clone(&self) -> SlotContentKind
fn clone(&self) -> SlotContentKind
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SlotContentKind
impl Debug for SlotContentKind
Source§impl PartialEq for SlotContentKind
impl PartialEq for SlotContentKind
impl Copy for SlotContentKind
impl Eq for SlotContentKind
impl StructuralPartialEq for SlotContentKind
Auto Trait Implementations§
impl Freeze for SlotContentKind
impl RefUnwindSafe for SlotContentKind
impl Send for SlotContentKind
impl Sync for SlotContentKind
impl Unpin for SlotContentKind
impl UnwindSafe for SlotContentKind
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