pub enum CodePolicy {
Wrap,
Clip,
}Expand description
Controls long code-line behavior during layout.
Variants§
Wrap
Wrap long code lines at terminal cell boundaries.
Clip
Clip long lines to the available width without horizontal scrolling.
Trait Implementations§
Source§impl Clone for CodePolicy
impl Clone for CodePolicy
impl Copy for CodePolicy
Source§impl Debug for CodePolicy
impl Debug for CodePolicy
Source§impl Default for CodePolicy
impl Default for CodePolicy
impl Eq for CodePolicy
Source§impl PartialEq for CodePolicy
impl PartialEq for CodePolicy
impl StructuralPartialEq for CodePolicy
Auto Trait Implementations§
impl Freeze for CodePolicy
impl RefUnwindSafe for CodePolicy
impl Send for CodePolicy
impl Sync for CodePolicy
impl Unpin for CodePolicy
impl UnsafeUnpin for CodePolicy
impl UnwindSafe for CodePolicy
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: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more