pub enum ResourceUrl {
Javascript(Url),
Css(Url),
Image(Url),
}Expand description
Tag the resource URLs with the type of resource they correspond to
Variants§
Implementations§
Trait Implementations§
Source§impl Debug for ResourceUrl
impl Debug for ResourceUrl
impl Eq for ResourceUrl
Source§impl Ord for ResourceUrl
impl Ord for ResourceUrl
Source§fn cmp(&self, rhs: &ResourceUrl) -> Ordering
fn cmp(&self, rhs: &ResourceUrl) -> Ordering
1.21.0 (const: unstable) · 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 ResourceUrl
impl PartialEq for ResourceUrl
Source§fn eq(&self, other: &ResourceUrl) -> bool
fn eq(&self, other: &ResourceUrl) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ResourceUrl
impl PartialOrd for ResourceUrl
impl StructuralPartialEq for ResourceUrl
Auto Trait Implementations§
impl Freeze for ResourceUrl
impl RefUnwindSafe for ResourceUrl
impl Send for ResourceUrl
impl Sync for ResourceUrl
impl Unpin for ResourceUrl
impl UnsafeUnpin for ResourceUrl
impl UnwindSafe for ResourceUrl
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<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.