pub struct TaffyConfig {
pub use_rounding: bool,
}Fields§
§use_rounding: boolWhether to round layout values
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 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 TaffyConfig
impl Debug for TaffyConfig
Source§impl Default for TaffyConfig
impl Default for TaffyConfig
impl Copy 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