pub struct CssImageId(pub String);
Expand description
Note: In theory, we could take a reference here, but this leads to horrible lifetime issues.
Ownership allows the Css
struct to be independent
of the original source text. For example, when parsing a style
from CSS, the original string can be deallocated afterwards.
Tuple Fields§
§0: String
Trait Implementations§
Source§impl Clone for CssImageId
impl Clone for CssImageId
Source§fn clone(&self) -> CssImageId
fn clone(&self) -> CssImageId
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 CssImageId
impl Debug for CssImageId
Source§impl Display for CssImageId
impl Display for CssImageId
Source§impl<'a> From<CssImageId> for StyleBackgroundContent
impl<'a> From<CssImageId> for StyleBackgroundContent
Source§fn from(id: CssImageId) -> Self
fn from(id: CssImageId) -> Self
Converts to this type from the input type.
Source§impl Hash for CssImageId
impl Hash for CssImageId
Source§impl Ord for CssImageId
impl Ord for CssImageId
Source§fn cmp(&self, other: &CssImageId) -> Ordering
fn cmp(&self, other: &CssImageId) -> 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 PartialEq for CssImageId
impl PartialEq for CssImageId
Source§impl PartialOrd for CssImageId
impl PartialOrd for CssImageId
impl Eq for CssImageId
impl StructuralPartialEq for CssImageId
Auto Trait Implementations§
impl Freeze for CssImageId
impl RefUnwindSafe for CssImageId
impl Send for CssImageId
impl Sync for CssImageId
impl Unpin for CssImageId
impl UnwindSafe for CssImageId
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)