#[repr(C)]pub enum ExternalResourceKind {
Image = 0,
Font = 1,
Stylesheet = 2,
Script = 3,
Icon = 4,
Video = 5,
Audio = 6,
Unknown = 7,
}Expand description
Classification of an external resource referenced in HTML/XML
Variants§
Image = 0
Image resource (img src, background-image, etc.)
Font = 1
Font resource (@font-face src, link rel=“preload” as=“font”)
Stylesheet = 2
Stylesheet (link rel=“stylesheet”, @import)
Script = 3
Script (script src)
Icon = 4
Favicon or icon
Video = 5
Video source
Audio = 6
Audio source
Unknown = 7
Generic link or unknown resource type
Trait Implementations§
Source§impl Clone for ExternalResourceKind
impl Clone for ExternalResourceKind
Source§fn clone(&self) -> ExternalResourceKind
fn clone(&self) -> ExternalResourceKind
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 ExternalResourceKind
impl Debug for ExternalResourceKind
Source§impl Hash for ExternalResourceKind
impl Hash for ExternalResourceKind
Source§impl Ord for ExternalResourceKind
impl Ord for ExternalResourceKind
Source§fn cmp(&self, other: &ExternalResourceKind) -> Ordering
fn cmp(&self, other: &ExternalResourceKind) -> 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 ExternalResourceKind
impl PartialEq for ExternalResourceKind
Source§impl PartialOrd for ExternalResourceKind
impl PartialOrd for ExternalResourceKind
impl Copy for ExternalResourceKind
impl Eq for ExternalResourceKind
impl StructuralPartialEq for ExternalResourceKind
Auto Trait Implementations§
impl Freeze for ExternalResourceKind
impl RefUnwindSafe for ExternalResourceKind
impl Send for ExternalResourceKind
impl Sync for ExternalResourceKind
impl Unpin for ExternalResourceKind
impl UnsafeUnpin for ExternalResourceKind
impl UnwindSafe for ExternalResourceKind
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§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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 more