pub struct WalletStandardIcon { /* private fields */ }Implementations§
Source§impl WalletStandardIcon
impl WalletStandardIcon
pub fn new(bytes: &'static [u8], mime: WalletStandardIconMime) -> Self
pub fn new_svg(bytes: &'static [u8]) -> Self
pub fn new_gif(bytes: &'static [u8]) -> Self
pub fn new_webp(bytes: &'static [u8]) -> Self
pub fn new_png(bytes: &'static [u8]) -> Self
pub fn new_jpeg(bytes: &'static [u8]) -> Self
pub fn base64<'wa>(&'wa self) -> Cow<'wa, str>
Trait Implementations§
Source§impl Clone for WalletStandardIcon
impl Clone for WalletStandardIcon
Source§fn clone(&self) -> WalletStandardIcon
fn clone(&self) -> WalletStandardIcon
Returns a duplicate 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 WalletStandardIcon
impl Debug for WalletStandardIcon
Source§impl Hash for WalletStandardIcon
impl Hash for WalletStandardIcon
Source§impl Ord for WalletStandardIcon
impl Ord for WalletStandardIcon
Source§fn cmp(&self, other: &WalletStandardIcon) -> Ordering
fn cmp(&self, other: &WalletStandardIcon) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for WalletStandardIcon
impl PartialEq for WalletStandardIcon
Source§impl PartialOrd for WalletStandardIcon
impl PartialOrd for WalletStandardIcon
impl Copy for WalletStandardIcon
impl Eq for WalletStandardIcon
impl StructuralPartialEq for WalletStandardIcon
Auto Trait Implementations§
impl Freeze for WalletStandardIcon
impl RefUnwindSafe for WalletStandardIcon
impl Send for WalletStandardIcon
impl Sync for WalletStandardIcon
impl Unpin for WalletStandardIcon
impl UnwindSafe for WalletStandardIcon
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