pub struct ImageSizes(pub Cow<'static, str>);Expand description
Image sizes for different page layouts. For Rel::Preload and As::Image only.
Tuple Fields§
§0: Cow<'static, str>Trait Implementations§
Source§impl Attributes for ImageSizes
impl Attributes for ImageSizes
Source§impl Clone for ImageSizes
impl Clone for ImageSizes
Source§fn clone(&self) -> ImageSizes
fn clone(&self) -> ImageSizes
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 ImageSizes
impl Debug for ImageSizes
Source§impl Hash for ImageSizes
impl Hash for ImageSizes
Source§impl Ord for ImageSizes
impl Ord for ImageSizes
Source§fn cmp(&self, other: &ImageSizes) -> Ordering
fn cmp(&self, other: &ImageSizes) -> 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 ImageSizes
impl PartialEq for ImageSizes
Source§impl PartialOrd for ImageSizes
impl PartialOrd for ImageSizes
impl Eq for ImageSizes
impl StructuralPartialEq for ImageSizes
Auto Trait Implementations§
impl Freeze for ImageSizes
impl RefUnwindSafe for ImageSizes
impl Send for ImageSizes
impl Sync for ImageSizes
impl Unpin for ImageSizes
impl UnwindSafe for ImageSizes
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