pub struct Gaps { /* private fields */ }
Implementations§
§impl Gaps
impl Gaps
pub fn new(top: f32, right: f32, bottom: f32, left: f32) -> Gaps
pub fn fill_vertical(&mut self, value: f32)
pub fn fill_horizontal(&mut self, value: f32)
pub fn fill_all(&mut self, value: f32)
pub fn horizontal(&self) -> f32
pub fn vertical(&self) -> f32
pub fn top(&self) -> f32
pub fn right(&self) -> f32
pub fn bottom(&self) -> f32
pub fn left(&self) -> f32
pub fn pretty(&self) -> String
Trait Implementations§
impl Copy for Gaps
impl StructuralPartialEq for Gaps
Auto Trait Implementations§
impl RefUnwindSafe for Gaps
impl Send for Gaps
impl Sync for Gaps
impl Unpin for Gaps
impl UnwindSafe for Gaps
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.