pub struct DeviceFormatInfo {
pub format_id: i32,
pub description: &'static str,
}Expand description
A single format entry known to a device generation.
Fields§
§format_id: i32Numeric format ID (the big-endian 4-byte prefix in .ithmb files).
description: &'static strHuman-readable description (dimensions and encoding).
Trait Implementations§
Source§impl Clone for DeviceFormatInfo
impl Clone for DeviceFormatInfo
Source§fn clone(&self) -> DeviceFormatInfo
fn clone(&self) -> DeviceFormatInfo
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 moreimpl Copy for DeviceFormatInfo
Source§impl Debug for DeviceFormatInfo
impl Debug for DeviceFormatInfo
impl Eq for DeviceFormatInfo
Source§impl PartialEq for DeviceFormatInfo
impl PartialEq for DeviceFormatInfo
Source§fn eq(&self, other: &DeviceFormatInfo) -> bool
fn eq(&self, other: &DeviceFormatInfo) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DeviceFormatInfo
Auto Trait Implementations§
impl Freeze for DeviceFormatInfo
impl RefUnwindSafe for DeviceFormatInfo
impl Send for DeviceFormatInfo
impl Sync for DeviceFormatInfo
impl Unpin for DeviceFormatInfo
impl UnsafeUnpin for DeviceFormatInfo
impl UnwindSafe for DeviceFormatInfo
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more