Enum style::stylesheets::margin_rule::MarginRuleType
source · #[repr(u8)]pub enum MarginRuleType {
Show 16 variants
TopLeftCorner = 0,
TopLeft = 1,
TopCenter = 2,
TopRight = 3,
TopRightCorner = 4,
BottomLeftCorner = 5,
BottomLeft = 6,
BottomCenter = 7,
BottomRight = 8,
BottomRightCorner = 9,
LeftTop = 10,
LeftMiddle = 11,
LeftBottom = 12,
RightTop = 13,
RightMiddle = 14,
RightBottom = 15,
}
Expand description
[@margin
][margin] rule names.
https://drafts.csswg.org/css-page-3/#margin-at-rules
Variants§
TopLeftCorner = 0
[@top-left-corner
][top-left-corner] margin rule
[top-left-corner] https://drafts.csswg.org/css-page-3/#top-left-corner-box-def
TopLeft = 1
[@top-left
][top-left] margin rule
[top-left] https://drafts.csswg.org/css-page-3/#top-left-box-def
TopCenter = 2
[@top-center
][top-center] margin rule
[top-center] https://drafts.csswg.org/css-page-3/#top-center-box-def
TopRight = 3
[@top-right
][top-right] margin rule
[top-right] https://drafts.csswg.org/css-page-3/#top-right-box-def
TopRightCorner = 4
[@top-right-corner
][top-right-corner] margin rule
[top-right-corner] https://drafts.csswg.org/css-page-3/#top-right-corner-box-def
BottomLeftCorner = 5
[@bottom-left-corner
][bottom-left-corner] margin rule
[bottom-left-corner] https://drafts.csswg.org/css-page-3/#bottom-left-corner-box-def
BottomLeft = 6
[@bottom-left
][bottom-left] margin rule
[bottom-left] https://drafts.csswg.org/css-page-3/#bottom-left-box-def
BottomCenter = 7
[@bottom-center
][bottom-center] margin rule
[bottom-center] https://drafts.csswg.org/css-page-3/#bottom-center-box-def
BottomRight = 8
[@bottom-right
][bottom-right] margin rule
[bottom-right] https://drafts.csswg.org/css-page-3/#bottom-right-box-def
BottomRightCorner = 9
[@bottom-right-corner
][bottom-right-corner] margin rule
[bottom-right-corner] https://drafts.csswg.org/css-page-3/#bottom-right-corner-box-def
LeftTop = 10
[@left-top
][left-top] margin rule
[left-top] https://drafts.csswg.org/css-page-3/#left-top-box-def
LeftMiddle = 11
[@left-middle
][left-middle] margin rule
[left-middle] https://drafts.csswg.org/css-page-3/#left-middle-box-def
LeftBottom = 12
[@left-bottom
][left-bottom] margin rule
[left-bottom] https://drafts.csswg.org/css-page-3/#left-bottom-box-def
RightTop = 13
[@right-top
][right-top] margin rule
[right-top] https://drafts.csswg.org/css-page-3/#right-top-box-def
RightMiddle = 14
[@right-middle
][right-middle] margin rule
[right-middle] https://drafts.csswg.org/css-page-3/#right-middle-box-def
RightBottom = 15
[@right-bottom
][right-bottom] margin rule
[right-bottom] https://drafts.csswg.org/css-page-3/#right-bottom-box-def
Implementations§
source§impl MarginRuleType
impl MarginRuleType
sourcepub fn match_name(name: &str) -> Option<Self>
pub fn match_name(name: &str) -> Option<Self>
Matches the rule type for this name. This does not expect a leading ‘@’.
Trait Implementations§
source§impl Clone for MarginRuleType
impl Clone for MarginRuleType
source§fn clone(&self) -> MarginRuleType
fn clone(&self) -> MarginRuleType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MarginRuleType
impl Debug for MarginRuleType
source§impl MallocSizeOf for MarginRuleType
impl MallocSizeOf for MarginRuleType
source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
source§impl PartialEq for MarginRuleType
impl PartialEq for MarginRuleType
source§fn eq(&self, other: &MarginRuleType) -> bool
fn eq(&self, other: &MarginRuleType) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl ToShmem for MarginRuleType
impl ToShmem for MarginRuleType
impl Copy for MarginRuleType
impl Eq for MarginRuleType
impl StructuralPartialEq for MarginRuleType
Auto Trait Implementations§
impl Freeze for MarginRuleType
impl RefUnwindSafe for MarginRuleType
impl Send for MarginRuleType
impl Sync for MarginRuleType
impl Unpin for MarginRuleType
impl UnwindSafe for MarginRuleType
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more