[−][src]Struct savory_html::css::margin::Margin
use savory_html::css::{values as val, Style, unit::px}; Style::default() .and_margin(|conf| { conf.x(val::Auto) // equal to conf.left(val::Auto).right(val::Auto) .y(px(4)) });
Fields
top: Option<Length>
right: Option<Length>
bottom: Option<Length>
left: Option<Length>
Implementations
impl Margin
[src]
pub fn top(self, value: impl Into<Length>) -> Self
[src]
pub fn try_top(self, value: Option<impl Into<Length>>) -> Self
[src]
pub fn right(self, value: impl Into<Length>) -> Self
[src]
pub fn try_right(self, value: Option<impl Into<Length>>) -> Self
[src]
pub fn bottom(self, value: impl Into<Length>) -> Self
[src]
pub fn try_bottom(self, value: Option<impl Into<Length>>) -> Self
[src]
pub fn left(self, value: impl Into<Length>) -> Self
[src]
pub fn try_left(self, value: Option<impl Into<Length>>) -> Self
[src]
impl Margin
[src]
pub fn all(self, value: impl Into<Length>) -> Self
[src]
pub fn zero(self) -> Self
[src]
pub fn x(self, value: impl Into<Length>) -> Self
[src]
pub fn y(self, value: impl Into<Length>) -> Self
[src]
pub fn horizontal(self, value: impl Into<Length>) -> Self
[src]
pub fn vertical(self, value: impl Into<Length>) -> Self
[src]
pub fn auto(self) -> Self
[src]
pub fn full(self) -> Self
[src]
pub fn half(self) -> 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 From<Length> for Margin
[src]
impl From<Percent> for Margin
[src]
impl PartialEq<Margin> for Margin
[src]
impl StructuralPartialEq for Margin
[src]
impl UpdateStyleValues for Margin
[src]
fn update_style_values(self, values: StyleValues) -> StyleValues
[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> Sealed<T> for T where
T: ?Sized,
T: ?Sized,
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,