Enum druid::widget::LineBreaking
source · 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§
source§impl Clone for LineBreaking
impl Clone for LineBreaking
source§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 moresource§impl Data for LineBreaking
impl Data for LineBreaking
source§impl Debug for LineBreaking
impl Debug for LineBreaking
source§impl PartialEq<LineBreaking> for LineBreaking
impl PartialEq<LineBreaking> for LineBreaking
source§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§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§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.