pub struct LayerListItem { /* private fields */ }Implementations§
Source§impl LayerListItem
impl LayerListItem
pub fn new(label: impl Into<String>) -> LayerListItem
pub fn detail(self, detail: impl Into<String>) -> LayerListItem
pub fn detail_when<F>(self, detail: F) -> LayerListItem
pub fn thumbnail(self, color: Color) -> LayerListItem
pub fn visible(self, visible: bool) -> LayerListItem
pub fn visible_when<F>(self, visible: F) -> LayerListItem
pub fn locked(self, locked: bool) -> LayerListItem
pub fn locked_when<F>(self, locked: F) -> LayerListItem
Sourcepub fn enabled(self, enabled: bool) -> LayerListItem
pub fn enabled(self, enabled: bool) -> LayerListItem
Whether the item can be chosen. Items are enabled unless set otherwise.
pub fn label(&self) -> &str
Trait Implementations§
Source§impl Clone for LayerListItem
impl Clone for LayerListItem
Source§fn clone(&self) -> LayerListItem
fn clone(&self) -> LayerListItem
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 moreSource§impl Debug for LayerListItem
impl Debug for LayerListItem
Auto Trait Implementations§
impl !RefUnwindSafe for LayerListItem
impl !Send for LayerListItem
impl !Sync for LayerListItem
impl !UnwindSafe for LayerListItem
impl Forget for LayerListItem
impl Freeze for LayerListItem
impl Move for LayerListItem
impl Unpin for LayerListItem
impl UnsafeUnpin for LayerListItem
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.