Struct nostr_sdk::ImageDimensions
source · pub struct ImageDimensions {
pub width: u64,
pub height: u64,
}
Expand description
Simple struct to hold width
x height
.
Fields§
§width: u64
Width
height: u64
Height
Implementations§
source§impl ImageDimensions
impl ImageDimensions
sourcepub fn new(width: u64, height: u64) -> ImageDimensions
pub fn new(width: u64, height: u64) -> ImageDimensions
Net image dimensions
Trait Implementations§
source§impl Clone for ImageDimensions
impl Clone for ImageDimensions
source§fn clone(&self) -> ImageDimensions
fn clone(&self) -> ImageDimensions
Returns a copy 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 ImageDimensions
impl Debug for ImageDimensions
source§impl Display for ImageDimensions
impl Display for ImageDimensions
source§impl FromStr for ImageDimensions
impl FromStr for ImageDimensions
source§impl Hash for ImageDimensions
impl Hash for ImageDimensions
source§impl Ord for ImageDimensions
impl Ord for ImageDimensions
source§fn cmp(&self, other: &ImageDimensions) -> Ordering
fn cmp(&self, other: &ImageDimensions) -> 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<ImageDimensions> for ImageDimensions
impl PartialEq<ImageDimensions> for ImageDimensions
source§fn eq(&self, other: &ImageDimensions) -> bool
fn eq(&self, other: &ImageDimensions) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ImageDimensions> for ImageDimensions
impl PartialOrd<ImageDimensions> for ImageDimensions
source§fn partial_cmp(&self, other: &ImageDimensions) -> Option<Ordering>
fn partial_cmp(&self, other: &ImageDimensions) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for ImageDimensions
impl Eq for ImageDimensions
impl StructuralEq for ImageDimensions
impl StructuralPartialEq for ImageDimensions
Auto Trait Implementations§
impl RefUnwindSafe for ImageDimensions
impl Send for ImageDimensions
impl Sync for ImageDimensions
impl Unpin for ImageDimensions
impl UnwindSafe for ImageDimensions
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.