pub struct TaffyConfig {
pub use_rounding: bool,
}
Fields§
§use_rounding: bool
Implementations§
Source§impl TaffyConfig
impl TaffyConfig
pub fn new() -> Self
pub fn with_rounding(self, use_rounding: bool) -> Self
pub fn enable_rounding(&mut self)
pub fn disable_rounding(&mut self)
Trait Implementations§
Source§impl Clone for TaffyConfig
impl Clone for TaffyConfig
Source§fn clone(&self) -> TaffyConfig
fn clone(&self) -> TaffyConfig
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 TaffyConfig
impl Debug for TaffyConfig
Source§impl Default for TaffyConfig
impl Default for TaffyConfig
Source§impl Ord for TaffyConfig
impl Ord for TaffyConfig
Source§fn cmp(&self, other: &TaffyConfig) -> Ordering
fn cmp(&self, other: &TaffyConfig) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TaffyConfig
impl PartialEq for TaffyConfig
Source§impl PartialOrd for TaffyConfig
impl PartialOrd for TaffyConfig
Source§impl TaffyConfig for TaffyConfig
impl TaffyConfig for TaffyConfig
fn use_rounding(&self) -> bool
impl Copy for TaffyConfig
impl Eq for TaffyConfig
impl StructuralPartialEq for TaffyConfig
Auto Trait Implementations§
impl Freeze for TaffyConfig
impl RefUnwindSafe for TaffyConfig
impl Send for TaffyConfig
impl Sync for TaffyConfig
impl Unpin for TaffyConfig
impl UnwindSafe for TaffyConfig
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