pub struct BackgroundPosition<const DEFAULT_TOP_LEFT: bool = true>(pub SpacePair<PositionComponent>);Expand description
Parsed position value for one layer-like CSS property.
Tuple Fields§
§0: SpacePair<PositionComponent>Implementations§
Trait Implementations§
Source§impl<const DEFAULT_TOP_LEFT: bool> Clone for BackgroundPosition<DEFAULT_TOP_LEFT>
impl<const DEFAULT_TOP_LEFT: bool> Clone for BackgroundPosition<DEFAULT_TOP_LEFT>
Source§fn clone(&self) -> BackgroundPosition<DEFAULT_TOP_LEFT>
fn clone(&self) -> BackgroundPosition<DEFAULT_TOP_LEFT>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<const DEFAULT_TOP_LEFT: bool> Copy for BackgroundPosition<DEFAULT_TOP_LEFT>
Source§impl<const DEFAULT_TOP_LEFT: bool> Debug for BackgroundPosition<DEFAULT_TOP_LEFT>
impl<const DEFAULT_TOP_LEFT: bool> Debug for BackgroundPosition<DEFAULT_TOP_LEFT>
Source§impl<const DEFAULT_TOP_LEFT: bool> Default for BackgroundPosition<DEFAULT_TOP_LEFT>
impl<const DEFAULT_TOP_LEFT: bool> Default for BackgroundPosition<DEFAULT_TOP_LEFT>
Source§impl<'i, const DEFAULT_TOP_LEFT: bool> FromCss<'i> for BackgroundPosition<DEFAULT_TOP_LEFT>
impl<'i, const DEFAULT_TOP_LEFT: bool> FromCss<'i> for BackgroundPosition<DEFAULT_TOP_LEFT>
Source§const VALID_TOKENS: &'static [CssToken] = PositionComponent::VALID_TOKENS
const VALID_TOKENS: &'static [CssToken] = PositionComponent::VALID_TOKENS
Returns the list of valid CSS tokens for this type.
Source§fn from_css(input: &mut Parser<'i, '_>) -> ParseResult<'i, Self>
fn from_css(input: &mut Parser<'i, '_>) -> ParseResult<'i, Self>
Parses the type from a
Parser instance.Source§fn from_str(source: &'i str) -> ParseResult<'i, Self>where
Self: Sized,
fn from_str(source: &'i str) -> ParseResult<'i, Self>where
Self: Sized,
Helper function to parse the type from a string.
Source§const EXPECT_MESSAGE: CssExpectedMessage = CssExpectedMessage::OneValue
const EXPECT_MESSAGE: CssExpectedMessage = CssExpectedMessage::OneValue
Message template used when building parse errors for this type.
Source§impl<const DEFAULT_TOP_LEFT: bool> PartialEq for BackgroundPosition<DEFAULT_TOP_LEFT>
impl<const DEFAULT_TOP_LEFT: bool> PartialEq for BackgroundPosition<DEFAULT_TOP_LEFT>
Source§fn eq(&self, other: &BackgroundPosition<DEFAULT_TOP_LEFT>) -> bool
fn eq(&self, other: &BackgroundPosition<DEFAULT_TOP_LEFT>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<const DEFAULT_TOP_LEFT: bool> StructuralPartialEq for BackgroundPosition<DEFAULT_TOP_LEFT>
Source§impl<const DEFAULT_TOP_LEFT: bool> TailwindPropertyParser for BackgroundPosition<DEFAULT_TOP_LEFT>
impl<const DEFAULT_TOP_LEFT: bool> TailwindPropertyParser for BackgroundPosition<DEFAULT_TOP_LEFT>
Auto Trait Implementations§
impl<const DEFAULT_TOP_LEFT: bool> Freeze for BackgroundPosition<DEFAULT_TOP_LEFT>
impl<const DEFAULT_TOP_LEFT: bool> RefUnwindSafe for BackgroundPosition<DEFAULT_TOP_LEFT>
impl<const DEFAULT_TOP_LEFT: bool> Send for BackgroundPosition<DEFAULT_TOP_LEFT>
impl<const DEFAULT_TOP_LEFT: bool> Sync for BackgroundPosition<DEFAULT_TOP_LEFT>
impl<const DEFAULT_TOP_LEFT: bool> Unpin for BackgroundPosition<DEFAULT_TOP_LEFT>
impl<const DEFAULT_TOP_LEFT: bool> UnsafeUnpin for BackgroundPosition<DEFAULT_TOP_LEFT>
impl<const DEFAULT_TOP_LEFT: bool> UnwindSafe for BackgroundPosition<DEFAULT_TOP_LEFT>
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