Struct limn_text_layout::types::Range
[−]
[src]
pub struct Range { pub start: f32, pub end: f32, }
Fields
start: f32
The start of some Range
along an axis.
end: f32
The end of some Range
along an axis.
Methods
impl Range
[src]
fn new(start: f32, end: f32) -> Range
[src]
fn from_pos_and_len(pos: f32, len: f32) -> Range
[src]
fn middle(&self) -> f32
[src]
fn is_over(&self, pos: f32) -> bool
[src]
fn has_same_direction(self, other: Self) -> bool
[src]
fn shift(self, amount: f32) -> Range
[src]
fn undirected(self) -> Range
[src]
fn invert(self) -> Range
[src]
fn align_start_of(self, other: Self) -> Self
[src]
fn align_middle_of(self, other: Self) -> Self
[src]
fn align_end_of(self, other: Self) -> Self
[src]
Trait Implementations
impl Copy for Range
[src]
impl Clone for Range
[src]
fn clone(&self) -> Range
[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