pub struct ImageRef {
pub key: u64,
pub width: u32,
pub height: u32,
pub src: (u32, u32, u32, u32),
pub rect: Rect,
pub pixels: Pixels,
}Expand description
A picture in the view.
Fields§
§key: u64Cache key: the host uploads a key once and reuses the texture.
width: u32§height: u32§src: (u32, u32, u32, u32)§rect: Rect§pixels: PixelsTrait Implementations§
Source§impl<'de> Deserialize<'de> for ImageRef
impl<'de> Deserialize<'de> for ImageRef
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
impl Eq for ImageRef
impl StructuralPartialEq for ImageRef
Auto Trait Implementations§
impl Forget for ImageRef
impl Freeze for ImageRef
impl RefUnwindSafe for ImageRef
impl Send for ImageRef
impl Sync for ImageRef
impl Unpin for ImageRef
impl UnsafeUnpin for ImageRef
impl UnwindSafe for ImageRef
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