Enum duat_core::text::WrapMethod
source · pub enum WrapMethod {
Width,
Capped(usize),
Word,
NoWrap,
}Expand description
If and how to wrap lines at the end of the screen.
Variants§
Implementations§
source§impl WrapMethod
impl WrapMethod
sourcepub fn is_no_wrap(&self) -> bool
pub fn is_no_wrap(&self) -> bool
Returns true if the wrap method is NoWrap.
pub fn wrapping_cap(&self, width: usize) -> usize
Trait Implementations§
source§impl Clone for WrapMethod
impl Clone for WrapMethod
source§fn clone(&self) -> WrapMethod
fn clone(&self) -> WrapMethod
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for WrapMethod
impl Debug for WrapMethod
source§impl Default for WrapMethod
impl Default for WrapMethod
source§fn default() -> WrapMethod
fn default() -> WrapMethod
Returns the “default value” for a type. Read more
impl Copy for WrapMethod
Auto Trait Implementations§
impl Freeze for WrapMethod
impl RefUnwindSafe for WrapMethod
impl Send for WrapMethod
impl Sync for WrapMethod
impl Unpin for WrapMethod
impl UnwindSafe for WrapMethod
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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)