pub enum Position {
Static,
Relative,
Absolute,
}
Expand description
Variants§
Implementations§
Source§impl Position
impl Position
pub fn is_relatively_positioned(self) -> bool
pub fn is_absolutely_positioned(self) -> bool
Trait Implementations§
Source§impl EarlyFromSpecified for Position
impl EarlyFromSpecified for Position
fn early_from_specified( specified: &Self, _context: &EarlyCascadeContext<'_>, ) -> Self
Source§impl FromSpecified for Position
impl FromSpecified for Position
fn from_specified(specified: &Self, _context: &CascadeContext<'_>) -> Self
Source§impl SpecifiedValue for Position
impl SpecifiedValue for Position
type SpecifiedValue = Position
impl Copy for Position
impl Eq for Position
impl StructuralPartialEq for Position
Auto Trait Implementations§
impl Freeze for Position
impl RefUnwindSafe for Position
impl Send for Position
impl Sync for Position
impl Unpin for Position
impl UnwindSafe for Position
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> 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 more