Enum taffy::style::BoxGenerationMode
source · pub enum BoxGenerationMode {
Normal,
None,
}
Expand description
An abstracted version of the CSS display
property where any value other than “none” is represented by “normal”
See: https://www.w3.org/TR/css-display-3/#box-generation
Variants§
Normal
The node generates a box in the regular way
None
The node and it’s descendants generate no boxes (they are hidden)
Implementations§
source§impl BoxGenerationMode
impl BoxGenerationMode
sourcepub const DEFAULT: BoxGenerationMode = BoxGenerationMode::Normal
pub const DEFAULT: BoxGenerationMode = BoxGenerationMode::Normal
The default of BoxGenerationMode
Trait Implementations§
source§impl Clone for BoxGenerationMode
impl Clone for BoxGenerationMode
source§fn clone(&self) -> BoxGenerationMode
fn clone(&self) -> BoxGenerationMode
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 BoxGenerationMode
impl Debug for BoxGenerationMode
source§impl Default for BoxGenerationMode
impl Default for BoxGenerationMode
source§impl<'de> Deserialize<'de> for BoxGenerationMode
impl<'de> Deserialize<'de> for BoxGenerationMode
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for BoxGenerationMode
impl PartialEq for BoxGenerationMode
source§impl Serialize for BoxGenerationMode
impl Serialize for BoxGenerationMode
impl Copy for BoxGenerationMode
impl Eq for BoxGenerationMode
impl StructuralPartialEq for BoxGenerationMode
Auto Trait Implementations§
impl Freeze for BoxGenerationMode
impl RefUnwindSafe for BoxGenerationMode
impl Send for BoxGenerationMode
impl Sync for BoxGenerationMode
impl Unpin for BoxGenerationMode
impl UnwindSafe for BoxGenerationMode
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)