pub struct Indents {
pub left: Option<f32>,
pub top: Option<f32>,
pub right: Option<f32>,
pub bottom: Option<f32>,
}Fields§
§left: Option<f32>§top: Option<f32>§right: Option<f32>§bottom: Option<f32>Implementations§
Source§impl Indents
impl Indents
pub const NONE: Indents
pub fn all(v: f32) -> Indents
pub fn xy(x: f32, y: f32) -> Indents
pub fn axes(horizontal: f32, vertical: f32) -> Indents
pub fn horizontal(v: f32) -> Indents
pub fn vertical(v: f32) -> Indents
pub const fn only( left: Option<f32>, top: Option<f32>, right: Option<f32>, bottom: Option<f32>, ) -> Indents
pub fn is_none(self) -> bool
Trait Implementations§
impl Copy for Indents
impl StructuralPartialEq for Indents
Auto Trait Implementations§
impl Freeze for Indents
impl RefUnwindSafe for Indents
impl Send for Indents
impl Sync for Indents
impl Unpin for Indents
impl UnsafeUnpin for Indents
impl UnwindSafe for Indents
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