Enum aglet::LineEndMode
source · [−]pub enum LineEndMode {
StopBefore,
StopAt,
Never,
}Expand description
Where to stop the iteration of the line.
Variants
StopBefore
Stop immediately before the endpoint is reached
StopAt
Stop once the endpoint is reached, so the iterator includes the end.
Never
Just keep on going past the end point. You should probably use .take(n) or similar
to prevent your program from going forever.
Trait Implementations
sourceimpl Clone for LineEndMode
impl Clone for LineEndMode
sourcefn clone(&self) -> LineEndMode
fn clone(&self) -> LineEndMode
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for LineEndMode
impl Debug for LineEndMode
sourceimpl Default for LineEndMode
impl Default for LineEndMode
sourcefn default() -> LineEndMode
fn default() -> LineEndMode
Returns the “default value” for a type. Read more
impl Copy for LineEndMode
Auto Trait Implementations
impl RefUnwindSafe for LineEndMode
impl Send for LineEndMode
impl Sync for LineEndMode
impl Unpin for LineEndMode
impl UnwindSafe for LineEndMode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more