pub struct WrapPolicy { /* private fields */ }Implementations§
Source§impl WrapPolicy
impl WrapPolicy
pub fn new( char_width: fn(char) -> u32, break_opportunity: fn(&str, usize) -> BreakOpportunity, ) -> Self
pub fn with_width_policy( width_policy: WidthPolicy, break_opportunity: fn(&str, usize) -> BreakOpportunity, ) -> Self
pub fn width_policy(&self) -> WidthPolicy
pub fn char_width(&self) -> fn(char) -> u32
pub fn break_opportunity(&self) -> fn(&str, usize) -> BreakOpportunity
pub fn code() -> Self
pub fn code_with_width_policy(width_policy: WidthPolicy) -> Self
pub fn japanese_basic() -> Self
Trait Implementations§
Source§impl Clone for WrapPolicy
impl Clone for WrapPolicy
Source§fn clone(&self) -> WrapPolicy
fn clone(&self) -> WrapPolicy
Returns a duplicate 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 WrapPolicy
impl Debug for WrapPolicy
impl Copy for WrapPolicy
Auto Trait Implementations§
impl Freeze for WrapPolicy
impl RefUnwindSafe for WrapPolicy
impl Send for WrapPolicy
impl Sync for WrapPolicy
impl Unpin for WrapPolicy
impl UnsafeUnpin for WrapPolicy
impl UnwindSafe for WrapPolicy
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