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