Enum gfx_glyph::LineBreak
[−]
[src]
pub enum LineBreak { Soft(usize), Hard(usize), }
Indicator that a character is a line break, soft or hard. Includes the offset position.
Variants
Soft(usize)
Soft line break (offset).
Hard(usize)
Hard line break (offset).
Methods
impl LineBreak
[src]
fn offset(&self) -> usize
[src]
Returns the offset of the line break, the index after the breaking character.
Trait Implementations
impl Debug for LineBreak
[src]
impl Clone for LineBreak
[src]
fn clone(&self) -> LineBreak
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for LineBreak
[src]
impl PartialEq for LineBreak
[src]
fn eq(&self, __arg_0: &LineBreak) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &LineBreak) -> bool
[src]
This method tests for !=
.