Struct Rational
pub struct Rational { pub n: u32, pub d: u32 }
Type to represent tiff values of type RATIONAL
Fields
n: u32d: u32
Trait Implementations
impl Clone for Rational
fn clone(&self) -> Rational
impl TiffValue for Rational
const BYTE_LEN: u8 = 8;const FIELD_TYPE: Type = Type::RATIONAL;fn count(&self) -> usizefn write<W: Write>(&self, writer: &mut TiffWriter<W>) -> TiffResult<()>fn data(&self) -> Cow<'_, [u8]>
Auto Trait Implementations
impl Freeze for Rational
impl RefUnwindSafe for Rational
impl Send for Rational
impl Sync for Rational
impl Unpin for Rational
impl UnsafeUnpin for Rational
impl UnwindSafe for Rational
Blanket Implementations
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for Rational
where
ST: ?Sized,
DT: ?Sized,
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for Rational
where
ST: ?Sized,
DT: ?Sized,
impl<T> Any for Rational
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for Rational
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for Rational
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for Rational
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for Rational
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Read<Exclusive, BecauseExclusive> for Rational
where
T: ?Sized,
impl<T> ToOwned for Rational
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for Rational
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for Rational
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for Rational
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>