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]
pub fn new(start: f32, end: f32) -> Range
[src]
pub fn from_pos_and_len(pos: f32, len: f32) -> Range
[src]
pub fn middle(&self) -> f32
[src]
pub fn is_over(&self, pos: f32) -> bool
[src]
pub fn has_same_direction(self, other: Self) -> bool
[src]
pub fn shift(self, amount: f32) -> Range
[src]
pub fn undirected(self) -> Range
[src]
pub fn invert(self) -> Range
[src]
pub fn align_start_of(self, other: Self) -> Self
[src]
pub fn align_middle_of(self, other: Self) -> Self
[src]
pub 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
impl Debug for Range
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more