Enum orbtk_utils::Visibility
source · [−]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
sourceimpl Clone for Visibility
impl Clone for Visibility
sourcefn clone(&self) -> Visibility
fn clone(&self) -> Visibility
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Visibility
impl Debug for Visibility
sourceimpl Default for Visibility
impl Default for Visibility
sourcefn default() -> Visibility
fn default() -> Visibility
Returns the “default value” for a type. Read more
sourceimpl From<&'_ str> for Visibility
impl From<&'_ str> for Visibility
sourceimpl PartialEq<Visibility> for Visibility
impl PartialEq<Visibility> for Visibility
impl Copy for Visibility
impl StructuralPartialEq for Visibility
Auto Trait Implementations
impl RefUnwindSafe for Visibility
impl Send for Visibility
impl Sync for Visibility
impl Unpin for Visibility
impl UnwindSafe for Visibility
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more