pub struct ImageCandidate {
pub url: String,
pub width: Option<f64>,
pub density: Option<f64>,
}Expand description
A single candidate in a srcset: a URL plus optional “width” or “density”.
Fields§
§url: String§width: Option<f64>§density: Option<f64>Trait Implementations§
Source§impl Clone for ImageCandidate
impl Clone for ImageCandidate
Source§fn clone(&self) -> ImageCandidate
fn clone(&self) -> ImageCandidate
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 moreSource§impl Debug for ImageCandidate
impl Debug for ImageCandidate
Source§impl PartialEq for ImageCandidate
impl PartialEq for ImageCandidate
Source§fn eq(&self, other: &ImageCandidate) -> bool
fn eq(&self, other: &ImageCandidate) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ImageCandidate
impl PartialOrd for ImageCandidate
impl StructuralPartialEq for ImageCandidate
Auto Trait Implementations§
impl Freeze for ImageCandidate
impl RefUnwindSafe for ImageCandidate
impl Send for ImageCandidate
impl Sync for ImageCandidate
impl Unpin for ImageCandidate
impl UnsafeUnpin for ImageCandidate
impl UnwindSafe for ImageCandidate
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