pub struct ImageAsset { /* private fields */ }Implementations§
Source§impl ImageAsset
impl ImageAsset
pub const fn new(id: Id, width: Nat, height: Nat) -> Self
pub const fn try_new( id: Id, width: Nat, height: Nat, ) -> Result<Self, ValidationError>
pub fn id(&self) -> <Id as FieldAccess>::Output<'_>
pub fn width(&self) -> <Nat as FieldAccess>::Output<'_>
pub fn height(&self) -> <Nat as FieldAccess>::Output<'_>
Trait Implementations§
Source§impl Clone for ImageAsset
impl Clone for ImageAsset
Source§fn clone(&self) -> ImageAsset
fn clone(&self) -> ImageAsset
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 ImageAsset
impl Debug for ImageAsset
Source§impl PartialEq for ImageAsset
impl PartialEq for ImageAsset
Source§fn eq(&self, other: &ImageAsset) -> bool
fn eq(&self, other: &ImageAsset) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ImageAsset
impl StructuralPartialEq for ImageAsset
Auto Trait Implementations§
impl Freeze for ImageAsset
impl RefUnwindSafe for ImageAsset
impl Send for ImageAsset
impl Sync for ImageAsset
impl Unpin for ImageAsset
impl UnsafeUnpin for ImageAsset
impl UnwindSafe for ImageAsset
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