Enum rustainers::ImageReference
source · pub enum ImageReference {
Id(ImageId),
Name(ImageName),
}Expand description
An image reference
An image can be reference by a name, or by and id
Variants§
Trait Implementations§
source§impl Clone for ImageReference
impl Clone for ImageReference
source§fn clone(&self) -> ImageReference
fn clone(&self) -> ImageReference
Returns a copy 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 ImageReference
impl Debug for ImageReference
source§impl Display for ImageReference
impl Display for ImageReference
source§impl From<ImageId> for ImageReference
impl From<ImageId> for ImageReference
source§impl From<ImageName> for ImageReference
impl From<ImageName> for ImageReference
source§impl PartialEq for ImageReference
impl PartialEq for ImageReference
source§fn eq(&self, other: &ImageReference) -> bool
fn eq(&self, other: &ImageReference) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for ImageReference
impl StructuralEq for ImageReference
impl StructuralPartialEq for ImageReference
Auto Trait Implementations§
impl RefUnwindSafe for ImageReference
impl Send for ImageReference
impl Sync for ImageReference
impl Unpin for ImageReference
impl UnwindSafe for ImageReference
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.