Struct papergrid::width::CfgWidthFunction
source · [−]pub struct CfgWidthFunction { /* private fields */ }
Implementations
sourceimpl 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
sourceimpl Clone for CfgWidthFunction
impl Clone for CfgWidthFunction
sourcefn clone(&self) -> CfgWidthFunction
fn clone(&self) -> CfgWidthFunction
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for CfgWidthFunction
impl Debug for CfgWidthFunction
sourceimpl Default for CfgWidthFunction
impl Default for CfgWidthFunction
sourcefn default() -> CfgWidthFunction
fn default() -> CfgWidthFunction
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for CfgWidthFunction
impl Send for CfgWidthFunction
impl Sync for CfgWidthFunction
impl Unpin for CfgWidthFunction
impl UnwindSafe for CfgWidthFunction
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