pub enum Visibility {
Visible,
Hidden,
Collapsed,
}
Expand description
Is used to control the visibility of a widget
Variants§
Visible
The widget is visible.
Hidden
The widget will not be displayed, isn’t taken into account in the layout pipeline. It does consume memory in the render buffer.
Collapsed
The widget isn’t displayed but is
rendered. Thus it does
not consume space in the layout.
Trait Implementations§
Source§impl Clone for Visibility
impl Clone for Visibility
Source§fn clone(&self) -> Visibility
fn clone(&self) -> Visibility
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 Visibility
impl Debug for Visibility
Source§impl Default for Visibility
impl Default for Visibility
Source§fn default() -> Visibility
fn default() -> Visibility
Returns the “default value” for a type. Read more
Source§impl From<&str> for Visibility
impl From<&str> for Visibility
Source§fn from(t: &str) -> Visibility
fn from(t: &str) -> Visibility
Converts to this type from the input type.
Source§impl PartialEq for Visibility
impl PartialEq for Visibility
impl Copy for Visibility
impl StructuralPartialEq for Visibility
Auto Trait Implementations§
impl Freeze for Visibility
impl RefUnwindSafe for Visibility
impl Send for Visibility
impl Sync for Visibility
impl Unpin for Visibility
impl UnwindSafe for Visibility
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