pub struct Image;Implementations§
Source§impl Image
impl Image
pub fn from_encoded(_data: Data) -> Option<Self>
pub fn width(&self) -> i32
pub fn height(&self) -> i32
pub fn encode<'a>( &self, context: impl Into<Option<&'a mut DirectContext>>, format: EncodedImageFormat, quality: impl Into<Option<u32>>, ) -> Option<Data>
pub fn make_raster_image<'a>( &self, _context: impl Into<Option<&'a mut DirectContext>>, _caching_hint: impl Into<Option<CachingHint>>, ) -> Option<Image>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Image
impl RefUnwindSafe for Image
impl Send for Image
impl Sync for Image
impl Unpin for Image
impl UnsafeUnpin for Image
impl UnwindSafe for Image
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