pub enum AnchorPoint {
LeftTop,
Top,
RightTop,
Left,
Center,
Right,
LeftBottom,
Bottom,
RightBottom,
Standard(String),
Arbitrary(TailwindArbitrary),
}
Expand description
Anchor points are used to position elements relative to the viewport.
Variants§
LeftTop
0% 0%
to the viewport.
Top
50% 0%
to the viewport.
RightTop
100% 0%
to the viewport.
Left
0% 50%
to the viewport.
Center
50% 50%
to the viewport.
Right
100% 50%
to the viewport.
LeftBottom
0% 100%
to the viewport.
Bottom
50% 100%
to the viewport.
RightBottom
100% 100%
to the viewport.
Standard(String)
Arbitrary(TailwindArbitrary)
Implementations§
Source§impl AnchorPoint
impl AnchorPoint
pub fn parse( pattern: &[&str], arbitrary: &TailwindArbitrary, allow_center: bool, ) -> Result<Self>
pub fn parse_arbitrary(arbitrary: &TailwindArbitrary) -> Result<Self>
pub fn get_class(&self) -> String
pub fn get_properties(&self) -> String
pub fn check_valid(mode: &str) -> bool
Trait Implementations§
Source§impl Clone for AnchorPoint
impl Clone for AnchorPoint
Source§fn clone(&self) -> AnchorPoint
fn clone(&self) -> AnchorPoint
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for AnchorPoint
impl RefUnwindSafe for AnchorPoint
impl Send for AnchorPoint
impl Sync for AnchorPoint
impl Unpin for AnchorPoint
impl UnwindSafe for AnchorPoint
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