pub struct StyleChildren(/* private fields */);Expand description
The collection of child styles of a style.
The value is a shared handle: clones refer to the same collection, and handles compare by identity.
Implementations§
Source§impl StyleChildren
impl StyleChildren
pub fn is_empty(&self) -> bool
Sourcepub fn get(&self, index: usize) -> Rc<dyn IStyle>
pub fn get(&self, index: usize) -> Rc<dyn IStyle>
The child style at index. Panics if out of range.
Sourcepub fn remove(&self, item: impl Into<Rc<dyn IStyle>>) -> bool
pub fn remove(&self, item: impl Into<Rc<dyn IStyle>>) -> bool
Removes a child style. Returns whether it was present.
Trait Implementations§
Source§impl Clone for StyleChildren
impl Clone for StyleChildren
Source§impl Debug for StyleChildren
impl Debug for StyleChildren
Source§impl MarkupTyped for StyleChildren
impl MarkupTyped for StyleChildren
Source§const MARKUP: &'static MarkupType
const MARKUP: &'static MarkupType
The markup metadata of the type.
Auto Trait Implementations§
impl !RefUnwindSafe for StyleChildren
impl !Send for StyleChildren
impl !Sync for StyleChildren
impl !UnwindSafe for StyleChildren
impl Freeze for StyleChildren
impl Unpin for StyleChildren
impl UnsafeUnpin for StyleChildren
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
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> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more