pub enum LineBreaking {
WordWrap,
Clip,
Overflow,
}
Expand description
Options for handling lines that are too wide for the label.
Variants§
WordWrap
Lines are broken at word boundaries.
Clip
Lines are truncated to the width of the label.
Overflow
Lines overflow the label.
Trait Implementations§
§impl Clone for LineBreaking
impl Clone for LineBreaking
§fn clone(&self) -> LineBreaking
fn clone(&self) -> LineBreaking
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 more§impl Data for LineBreaking
impl Data for LineBreaking
§fn same(&self, other: &LineBreaking) -> bool
fn same(&self, other: &LineBreaking) -> bool
Determine whether two values are the same. Read more
§impl Debug for LineBreaking
impl Debug for LineBreaking
§impl PartialEq<LineBreaking> for LineBreaking
impl PartialEq<LineBreaking> for LineBreaking
§fn eq(&self, other: &LineBreaking) -> bool
fn eq(&self, other: &LineBreaking) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for LineBreaking
impl Eq for LineBreaking
impl StructuralEq for LineBreaking
impl StructuralPartialEq for LineBreaking
Auto Trait Implementations§
impl RefUnwindSafe for LineBreaking
impl Send for LineBreaking
impl Sync for LineBreaking
impl Unpin for LineBreaking
impl UnwindSafe for LineBreaking
Blanket Implementations§
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> RoundFrom<T> for T
impl<T> RoundFrom<T> for T
§fn round_from(x: T) -> T
fn round_from(x: T) -> T
Performs the conversion.
§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere U: RoundFrom<T>,
§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.