Struct SRational

pub struct SRational { pub n: i32, pub d: i32 }

Type to represent tiff values of type SRATIONAL

Fields

n: i32
d: i32

Trait Implementations

impl Clone for SRational

fn clone(&self) -> Self

impl TiffValue for SRational

const BYTE_LEN: u8 = 8;
const FIELD_TYPE: Type = Type::SRATIONAL;
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 SRational

impl RefUnwindSafe for SRational

impl Send for SRational

impl Sync for SRational

impl Unpin for SRational

impl UnsafeUnpin for SRational

impl UnwindSafe for SRational

Blanket Implementations

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for SRational where ST: ?Sized, DT: ?Sized,

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for SRational where ST: ?Sized, DT: ?Sized,

impl<T> Any for SRational where T: 'static + ?Sized,

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

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

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

impl<T> From<T> for SRational

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

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

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

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

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