pub enum WhiteSpace {
Normal,
Nowrap,
Pre,
PreWrap,
PreLine,
}Expand description
CSS white-space property.
Variants§
Implementations§
Source§impl WhiteSpace
impl WhiteSpace
pub fn preserves_newlines(&self) -> bool
pub fn collapses_spaces(&self) -> bool
pub fn wraps(&self) -> bool
Trait Implementations§
Source§impl Clone for WhiteSpace
impl Clone for WhiteSpace
Source§fn clone(&self) -> WhiteSpace
fn clone(&self) -> WhiteSpace
Returns a duplicate 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 WhiteSpace
impl Debug for WhiteSpace
Source§impl Default for WhiteSpace
impl Default for WhiteSpace
Source§fn default() -> WhiteSpace
fn default() -> WhiteSpace
Returns the “default value” for a type. Read more
Source§impl PartialEq for WhiteSpace
impl PartialEq for WhiteSpace
impl Copy for WhiteSpace
impl Eq for WhiteSpace
impl StructuralPartialEq for WhiteSpace
Auto Trait Implementations§
impl Freeze for WhiteSpace
impl RefUnwindSafe for WhiteSpace
impl Send for WhiteSpace
impl Sync for WhiteSpace
impl Unpin for WhiteSpace
impl UnwindSafe for WhiteSpace
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