Enum pax_std::core::image::ImageSource
source · pub enum ImageSource {
Empty,
Url(String),
Data(usize, usize, Vec<u8>),
}Variants§
Empty
Url(String)
Data(usize, usize, Vec<u8>)
width, height, vec.len() = width * height * 4 (one u8 for each rgba value)
Trait Implementations§
source§impl Clone for ImageSource
impl Clone for ImageSource
source§fn clone(&self) -> ImageSource
fn clone(&self) -> ImageSource
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 CoercionRules for ImageSource
impl CoercionRules for ImageSource
source§impl Debug for ImageSource
impl Debug for ImageSource
source§impl Default for ImageSource
impl Default for ImageSource
source§fn default() -> ImageSource
fn default() -> ImageSource
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ImageSource
impl<'de> Deserialize<'de> for ImageSource
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Interpolatable for ImageSource
impl Interpolatable for ImageSource
fn interpolate(&self, _other: &Self, _t: f64) -> Self
source§impl Serialize for ImageSource
impl Serialize for ImageSource
source§impl ToPaxValue for ImageSource
impl ToPaxValue for ImageSource
fn to_pax_value(self) -> PaxValue
impl ImplToFromPaxAny for ImageSource
Auto Trait Implementations§
impl Freeze for ImageSource
impl RefUnwindSafe for ImageSource
impl Send for ImageSource
impl Sync for ImageSource
impl Unpin for ImageSource
impl UnwindSafe for ImageSource
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.