[−][src]Struct khalas::css::margin::Margin
Methods
impl Margin
[src]
pub fn get_top(&self) -> Option<&Length>
[src]
pub fn top(&mut self, value: impl Into<Length>) -> &mut Self
[src]
pub fn unset_top(&mut self) -> &mut Self
[src]
Set None
to self.top
pub fn get_right(&self) -> Option<&Length>
[src]
pub fn right(&mut self, value: impl Into<Length>) -> &mut Self
[src]
pub fn unset_right(&mut self) -> &mut Self
[src]
Set None
to self.right
pub fn get_bottom(&self) -> Option<&Length>
[src]
pub fn bottom(&mut self, value: impl Into<Length>) -> &mut Self
[src]
pub fn unset_bottom(&mut self) -> &mut Self
[src]
Set None
to self.bottom
pub fn get_left(&self) -> Option<&Length>
[src]
pub fn left(&mut self, value: impl Into<Length>) -> &mut Self
[src]
pub fn unset_left(&mut self) -> &mut Self
[src]
Set None
to self.left
impl Margin
[src]
pub fn all(&mut self, value: impl Into<Length>) -> &mut Self
[src]
pub fn zero(&mut self) -> &mut Self
[src]
pub fn x(&mut self, value: impl Into<Length>) -> &mut Self
[src]
pub fn y(&mut self, value: impl Into<Length>) -> &mut Self
[src]
pub fn horizontal(&mut self, value: impl Into<Length>) -> &mut Self
[src]
pub fn vertical(&mut self, value: impl Into<Length>) -> &mut Self
[src]
pub fn auto(&mut self) -> &mut Self
[src]
pub fn full(&mut self) -> &mut Self
[src]
pub fn half(&mut self) -> &mut Self
[src]
Trait Implementations
impl Clone for Margin
[src]
impl Copy for Margin
[src]
impl Debug for Margin
[src]
impl Default for Margin
[src]
impl From<(Option<Length>, Option<Length>, Option<Length>, Option<Length>)> for Margin
[src]
impl From<Length> for Margin
[src]
impl PartialEq<Margin> for Margin
[src]
impl StructuralPartialEq for Margin
[src]
impl ToStyleMap for Margin
[src]
Auto Trait Implementations
impl RefUnwindSafe for Margin
impl Send for Margin
impl Sync for Margin
impl Unpin for Margin
impl UnwindSafe for Margin
Blanket Implementations
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
[src]
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
fn adapt_into_using<M>(self, method: M) -> D where
M: TransformMatrix<Swp, Dwp, T>,
[src]
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into(self) -> D
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,