#[repr(C)]pub struct CssUrlData {
original: Option<Arc<String>>,
resolved: Option<Arc<Url>>,
}
Expand description
Data shared between CssUrls.
Fields§
§original: Option<Arc<String>>
The original URI. This might be optional since we may insert computed values of images into the cascade directly, and we don’t bother to convert their serialization.
Refcounted since cloning this should be cheap and data: uris can be really large.
resolved: Option<Arc<Url>>
The resolved value for the url, if valid.
Trait Implementations§
Source§impl Debug for CssUrlData
impl Debug for CssUrlData
Source§impl<'de> Deserialize<'de> for CssUrlData
impl<'de> Deserialize<'de> for CssUrlData
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl MallocSizeOf for CssUrlData
impl MallocSizeOf for CssUrlData
Source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.
Source§impl Serialize for CssUrlData
impl Serialize for CssUrlData
Source§impl SpecifiedValueInfo for CssUrlData
impl SpecifiedValueInfo for CssUrlData
Source§const SUPPORTED_TYPES: u8 = 0u8
const SUPPORTED_TYPES: u8 = 0u8
Supported CssTypes by the given value type. Read more
Auto Trait Implementations§
impl Freeze for CssUrlData
impl RefUnwindSafe for CssUrlData
impl Send for CssUrlData
impl Sync for CssUrlData
impl Unpin for CssUrlData
impl UnwindSafe for CssUrlData
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> 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 moreSource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
Source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
Source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
Source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert