#[repr(u8)]pub(crate) enum Position {
Static = 0,
Relative = 1,
Absolute = 2,
Fixed = 3,
Sticky = 4,
}
Variants§
Implementations§
Source§impl PositionProperty
impl PositionProperty
Sourcepub fn parse<'i, 't>(
input: &mut Parser<'i, 't>,
) -> Result<PositionProperty, ParseError<'i, StyleParseErrorKind<'i>>>
pub fn parse<'i, 't>( input: &mut Parser<'i, 't>, ) -> Result<PositionProperty, ParseError<'i, StyleParseErrorKind<'i>>>
Parse this keyword.
Sourcepub fn from_ident(ident: &str) -> Result<PositionProperty, ()>
pub fn from_ident(ident: &str) -> Result<PositionProperty, ()>
Parse this keyword from a string slice.
Source§impl PositionProperty
impl PositionProperty
Sourcepub fn is_absolutely_positioned(self) -> bool
pub fn is_absolutely_positioned(self) -> bool
Is the box absolutely positioned?
Trait Implementations§
Source§impl Clone for PositionProperty
impl Clone for PositionProperty
Source§fn clone(&self) -> PositionProperty
fn clone(&self) -> PositionProperty
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PositionProperty
impl Debug for PositionProperty
Source§impl MallocSizeOf for PositionProperty
impl MallocSizeOf for PositionProperty
Source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.
Source§impl Parse for PositionProperty
impl Parse for PositionProperty
Source§fn parse<'i, 't>(
_: &ParserContext<'_>,
input: &mut Parser<'i, 't>,
) -> Result<PositionProperty, ParseError<'i, StyleParseErrorKind<'i>>>
fn parse<'i, 't>( _: &ParserContext<'_>, input: &mut Parser<'i, 't>, ) -> Result<PositionProperty, ParseError<'i, StyleParseErrorKind<'i>>>
Parse a value of this type. Read more
Source§impl PartialEq for PositionProperty
impl PartialEq for PositionProperty
Source§impl SpecifiedValueInfo for PositionProperty
impl SpecifiedValueInfo for PositionProperty
Source§const SUPPORTED_TYPES: u8 = 0u8
const SUPPORTED_TYPES: u8 = 0u8
Supported CssTypes by the given value type. Read more
Source§impl ToComputedValue for PositionProperty
impl ToComputedValue for PositionProperty
Source§type ComputedValue = PositionProperty
type ComputedValue = PositionProperty
The computed value type we’re going to be converted to.
Source§fn from_computed_value(
from: &<PositionProperty as ToComputedValue>::ComputedValue,
) -> PositionProperty
fn from_computed_value( from: &<PositionProperty as ToComputedValue>::ComputedValue, ) -> PositionProperty
Convert a computed value to specified value form. Read more
Source§fn to_computed_value(
&self,
context: &Context<'_>,
) -> <PositionProperty as ToComputedValue>::ComputedValue
fn to_computed_value( &self, context: &Context<'_>, ) -> <PositionProperty as ToComputedValue>::ComputedValue
Convert a specified value to a computed value, using itself and the data
inside the
Context
.Source§impl ToCss for PositionProperty
impl ToCss for PositionProperty
Source§impl ToResolvedValue for PositionProperty
impl ToResolvedValue for PositionProperty
Source§type ResolvedValue = PositionProperty
type ResolvedValue = PositionProperty
The resolved value type we’re going to be converted to.
Source§fn from_resolved_value(
from: <PositionProperty as ToResolvedValue>::ResolvedValue,
) -> PositionProperty
fn from_resolved_value( from: <PositionProperty as ToResolvedValue>::ResolvedValue, ) -> PositionProperty
Convert a resolved value to resolved value form.
Source§fn to_resolved_value(
self,
context: &Context<'_>,
) -> <PositionProperty as ToResolvedValue>::ResolvedValue
fn to_resolved_value( self, context: &Context<'_>, ) -> <PositionProperty as ToResolvedValue>::ResolvedValue
Convert a resolved value to a resolved value.
Source§impl ToShmem for PositionProperty
impl ToShmem for PositionProperty
Source§fn to_shmem(
&self,
builder: &mut SharedMemoryBuilder,
) -> Result<ManuallyDrop<PositionProperty>, String>
fn to_shmem( &self, builder: &mut SharedMemoryBuilder, ) -> Result<ManuallyDrop<PositionProperty>, String>
Clones this value into a form suitable for writing into a
SharedMemoryBuilder. Read more
impl Copy for PositionProperty
impl StructuralPartialEq for PositionProperty
Auto Trait Implementations§
impl Freeze for PositionProperty
impl RefUnwindSafe for PositionProperty
impl Send for PositionProperty
impl Sync for PositionProperty
impl Unpin for PositionProperty
impl UnwindSafe for PositionProperty
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
Converts
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>
Converts
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 moreSource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
Source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
Source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
Source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert