Struct Rational

pub struct Rational { pub n: u32, pub d: u32 }

Type to represent tiff values of type RATIONAL

Fields

n: u32
d: u32

Trait Implementations

impl Clone for Rational

fn clone(&self) -> Self

impl TiffValue for Rational

const BYTE_LEN: u8 = 8;
const FIELD_TYPE: Type = Type::RATIONAL;
fn count(&self) -> usize
fn 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,

impl<T> Borrow<T> for Rational where T: ?Sized,

impl<T> BorrowMut<T> for Rational where T: ?Sized,

impl<T> CloneToUninit for Rational where T: Clone,

impl<T> From<T> for Rational

impl<T> Read<Exclusive, BecauseExclusive> for Rational where T: ?Sized,

impl<T> ToOwned for Rational where T: Clone,

impl<T, U> Into<U> for Rational where U: From<T>,

impl<T, U> TryFrom<U> for Rational where U: Into<T>,

impl<T, U> TryInto<U> for Rational where U: TryFrom<T>,