pub enum Attachment {
Scroll(Ident),
Fixed(Ident),
Local(Ident),
}Expand description
https://drafts.csswg.org/css-backgrounds-3/#typedef-attachment
<attachment> = scroll | fixed | localVariants§
Trait Implementations§
Source§impl Clone for Attachment
impl Clone for Attachment
Source§fn clone(&self) -> Attachment
fn clone(&self) -> Attachment
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 moreSource§impl Debug for Attachment
impl Debug for Attachment
Source§impl From<Attachment> for Cursor
impl From<Attachment> for Cursor
Source§fn from(value: Attachment) -> Cursor
fn from(value: Attachment) -> Cursor
Converts to this type from the input type.
Source§impl From<Attachment> for Token
impl From<Attachment> for Token
Source§fn from(value: Attachment) -> Token
fn from(value: Attachment) -> Token
Converts to this type from the input type.
Source§impl Hash for Attachment
impl Hash for Attachment
Source§impl Ord for Attachment
impl Ord for Attachment
Source§fn cmp(&self, other: &Attachment) -> Ordering
fn cmp(&self, other: &Attachment) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'a> Parse<'a> for Attachment
impl<'a> Parse<'a> for Attachment
Source§impl PartialEq for Attachment
impl PartialEq for Attachment
Source§impl PartialOrd for Attachment
impl PartialOrd for Attachment
Source§impl<'a> Peek<'a> for Attachment
impl<'a> Peek<'a> for Attachment
Source§impl ToCursors for Attachment
impl ToCursors for Attachment
fn to_cursors(&self, s: &mut impl CursorSink)
impl Copy for Attachment
impl Eq for Attachment
impl StructuralPartialEq for Attachment
Auto Trait Implementations§
impl Freeze for Attachment
impl RefUnwindSafe for Attachment
impl Send for Attachment
impl Sync for Attachment
impl Unpin for Attachment
impl UnwindSafe for Attachment
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