pub struct Tier { /* private fields */ }Expand description
Represents a point tier in a TextGrid.
Implementations§
Source§impl Tier
impl Tier
pub fn set_xmin(&mut self, xmin: f64, warn: Option<bool>)
pub fn set_xmax(&mut self, xmax: f64, warn: Option<bool>)
pub fn get_size(&self) -> usize
Sourcepub fn push_point<W: Into<Option<bool>> + Copy>(
&mut self,
point: Point,
warn: W,
)
pub fn push_point<W: Into<Option<bool>> + Copy>( &mut self, point: Point, warn: W, )
Pushes a point to the tier.
Calls reorder() to ensure the points are sorted by their number after pushing.
§Arguments
point- The point to push.warn- Whether to warn if the point is outside the tier’s bounds.
Sourcepub fn push_points<W: Into<Option<bool>> + Copy>(
&mut self,
points: Vec<Point>,
warn: W,
)
pub fn push_points<W: Into<Option<bool>> + Copy>( &mut self, points: Vec<Point>, warn: W, )
Pushes multiple points to the tier by calling push_point() for each point.
Calls reorder() to ensure the points are sorted by their number after pushing.
§Arguments
points- The points to push.warn- Whether to warn if the point is outside the tier’s bounds.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Tier
impl RefUnwindSafe for Tier
impl Send for Tier
impl Sync for Tier
impl Unpin for Tier
impl UnwindSafe for Tier
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more