pub struct CfgWidthFunction { /* private fields */ }
Implementations§
Source§impl CfgWidthFunction
impl CfgWidthFunction
Sourcepub fn from_cfg(cfg: &GridConfig) -> Self
pub fn from_cfg(cfg: &GridConfig) -> Self
Creates a CfgWidthFunction
from GridConfig
.
Sourcepub fn new(tab_size: usize) -> Self
pub fn new(tab_size: usize) -> Self
Creates a CfgWidthFunction
with a tab size.
Trait Implementations§
Source§impl Clone for CfgWidthFunction
impl Clone for CfgWidthFunction
Source§fn clone(&self) -> CfgWidthFunction
fn clone(&self) -> CfgWidthFunction
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 CfgWidthFunction
impl Debug for CfgWidthFunction
Source§impl Default for CfgWidthFunction
impl Default for CfgWidthFunction
Source§fn default() -> CfgWidthFunction
fn default() -> CfgWidthFunction
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CfgWidthFunction
impl RefUnwindSafe for CfgWidthFunction
impl Send for CfgWidthFunction
impl Sync for CfgWidthFunction
impl Unpin for CfgWidthFunction
impl UnwindSafe for CfgWidthFunction
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