pub enum OverflowWrap {
Normal,
Anywhere,
BreakWord,
}Expand description
CSS overflow-wrap (aka word-wrap) property.
Controls whether an otherwise unbreakable sequence of characters may be broken at an arbitrary point to prevent overflow.
Variants§
Normal
No special break opportunities are introduced.
Anywhere
Break at arbitrary points if no other break points exist.
Soft wrap opportunities from anywhere ARE considered
when calculating min-content intrinsic sizes.
BreakWord
Same as anywhere except soft wrap opportunities introduced
by break-word are NOT considered when calculating
min-content intrinsic sizes.
Trait Implementations§
Source§impl Clone for OverflowWrap
impl Clone for OverflowWrap
Source§fn clone(&self) -> OverflowWrap
fn clone(&self) -> OverflowWrap
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 OverflowWrap
impl Debug for OverflowWrap
Source§impl Default for OverflowWrap
impl Default for OverflowWrap
Source§fn default() -> OverflowWrap
fn default() -> OverflowWrap
Returns the “default value” for a type. Read more
Source§impl Hash for OverflowWrap
impl Hash for OverflowWrap
Source§impl PartialEq for OverflowWrap
impl PartialEq for OverflowWrap
Source§fn eq(&self, other: &OverflowWrap) -> bool
fn eq(&self, other: &OverflowWrap) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for OverflowWrap
impl Eq for OverflowWrap
impl StructuralPartialEq for OverflowWrap
Auto Trait Implementations§
impl Freeze for OverflowWrap
impl RefUnwindSafe for OverflowWrap
impl Send for OverflowWrap
impl Sync for OverflowWrap
impl Unpin for OverflowWrap
impl UnsafeUnpin for OverflowWrap
impl UnwindSafe for OverflowWrap
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more