pub struct LayerListItem { /* private fields */ }Implementations§
Source§impl LayerListItem
impl LayerListItem
pub fn new(label: impl Into<String>) -> Self
pub fn detail(self, detail: impl Into<String>) -> Self
pub fn detail_when<F>(self, detail: F) -> Self
pub fn thumbnail(self, color: Color) -> Self
pub fn visible(self, visible: bool) -> Self
pub fn visible_when<F>(self, visible: F) -> Self
pub fn locked(self, locked: bool) -> Self
pub fn locked_when<F>(self, locked: F) -> Self
Sourcepub fn enabled(self, enabled: bool) -> Self
pub fn enabled(self, enabled: bool) -> Self
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§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