Enum buffer_graphics_lib::text::wrapping::WrappingStrategy
source · [−]pub enum WrappingStrategy {
None,
AtCol(usize),
SpaceBeforeCol(usize),
AtColWithHypen(usize),
Cutoff(usize),
Ellipsis(usize),
}
Variants
None
Don’t wrap, will draw off screen
AtCol(usize)
Splits string at column
SpaceBeforeCol(usize)
Wraps at the first space before column (acts like AtCol if no space is on that line)
AtColWithHypen(usize)
Same as AtCol but adds a hypen if it’s splitting a word
Cutoff(usize)
Chops off the end of string it’s over specific length
Ellipsis(usize)
Same as Cutoff but adds an ellipsis
Implementations
Trait Implementations
sourceimpl Clone for WrappingStrategy
impl Clone for WrappingStrategy
sourcefn clone(&self) -> WrappingStrategy
fn clone(&self) -> WrappingStrategy
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 moresourceimpl Debug for WrappingStrategy
impl Debug for WrappingStrategy
sourceimpl Default for WrappingStrategy
impl Default for WrappingStrategy
sourceimpl PartialEq<WrappingStrategy> for WrappingStrategy
impl PartialEq<WrappingStrategy> for WrappingStrategy
sourcefn eq(&self, other: &WrappingStrategy) -> bool
fn eq(&self, other: &WrappingStrategy) -> bool
impl Copy for WrappingStrategy
impl Eq for WrappingStrategy
impl StructuralEq for WrappingStrategy
impl StructuralPartialEq for WrappingStrategy
Auto Trait Implementations
impl RefUnwindSafe for WrappingStrategy
impl Send for WrappingStrategy
impl Sync for WrappingStrategy
impl Unpin for WrappingStrategy
impl UnwindSafe for WrappingStrategy
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<R, P> ReadPrimitive<R> for Pwhere
R: Read + ReadEndian<P>,
P: Default,
impl<R, P> ReadPrimitive<R> for Pwhere
R: Read + ReadEndian<P>,
P: Default,
sourcefn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian()
.sourcefn read_from_big_endian(read: &mut R) -> Result<Self, Error>
fn read_from_big_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_big_endian()
.sourcefn read_from_native_endian(read: &mut R) -> Result<Self, Error>
fn read_from_native_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_native_endian()
.