pub struct EncodedImage(/* private fields */);Implementations§
Source§impl EncodedImage
impl EncodedImage
Sourcepub fn new(bytes: impl Into<Arc<[u8]>>) -> Self
pub fn new(bytes: impl Into<Arc<[u8]>>) -> Self
Owns encoded bitmap data that may be shared across views.
§Panics
Panics if the data exceeds the WinRT buffer limit of 4 GiB.
Sourcepub fn from_static(bytes: &'static [u8]) -> Self
pub fn from_static(bytes: &'static [u8]) -> Self
Retains encoded bitmap data with static storage without copying it.
§Panics
Panics if the data exceeds the WinRT buffer limit of 4 GiB.
Trait Implementations§
Source§impl Clone for EncodedImage
impl Clone for EncodedImage
Source§fn clone(&self) -> EncodedImage
fn clone(&self) -> EncodedImage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 EncodedImage
impl Debug for EncodedImage
Auto Trait Implementations§
impl Freeze for EncodedImage
impl RefUnwindSafe for EncodedImage
impl Send for EncodedImage
impl Sync for EncodedImage
impl Unpin for EncodedImage
impl UnsafeUnpin for EncodedImage
impl UnwindSafe for EncodedImage
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