#[repr(C)]pub enum LayoutClear {
None = 0,
Left = 1,
Right = 2,
Both = 3,
}Expand description
Represents a clear attribute
Variants§
None = 0
No clearing; element is not moved below preceding floats.
Left = 1
Element is moved below preceding left floats.
Right = 2
Element is moved below preceding right floats.
Both = 3
Element is moved below all preceding floats.
Trait Implementations§
Source§impl Clone for LayoutClear
impl Clone for LayoutClear
Source§fn clone(&self) -> LayoutClear
fn clone(&self) -> LayoutClear
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 LayoutClear
impl Debug for LayoutClear
Source§impl Default for LayoutClear
impl Default for LayoutClear
Source§fn default() -> LayoutClear
fn default() -> LayoutClear
Returns the “default value” for a type. Read more
Source§impl Display for LayoutClear
impl Display for LayoutClear
Source§impl FormatAsRustCode for LayoutClear
impl FormatAsRustCode for LayoutClear
fn format_as_rust_code(&self, _tabs: usize) -> String
Source§impl From<LayoutClear> for CssProperty
impl From<LayoutClear> for CssProperty
Source§fn from(e: LayoutClear) -> Self
fn from(e: LayoutClear) -> Self
Converts to this type from the input type.
Source§impl Hash for LayoutClear
impl Hash for LayoutClear
Source§impl Ord for LayoutClear
impl Ord for LayoutClear
Source§fn cmp(&self, other: &LayoutClear) -> Ordering
fn cmp(&self, other: &LayoutClear) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for LayoutClear
impl PartialEq for LayoutClear
Source§fn eq(&self, other: &LayoutClear) -> bool
fn eq(&self, other: &LayoutClear) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for LayoutClear
impl PartialOrd for LayoutClear
Source§impl PrintAsCssValue for LayoutClear
impl PrintAsCssValue for LayoutClear
fn print_as_css_value(&self) -> String
impl Copy for LayoutClear
impl Eq for LayoutClear
impl StructuralPartialEq for LayoutClear
Auto Trait Implementations§
impl Freeze for LayoutClear
impl RefUnwindSafe for LayoutClear
impl Send for LayoutClear
impl Sync for LayoutClear
impl Unpin for LayoutClear
impl UnsafeUnpin for LayoutClear
impl UnwindSafe for LayoutClear
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