Struct SRational
pub struct SRational { pub n: i32, pub d: i32 }
Type to represent tiff values of type SRATIONAL
Fields
n: i32d: i32
Trait Implementations
impl Clone for SRational
fn clone(&self) -> SRational
impl TiffValue for SRational
const BYTE_LEN: u8 = 8;const FIELD_TYPE: Type = Type::SRATIONAL;fn count(&self) -> usizefn 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,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for SRational
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for SRational
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for SRational
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for SRational
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Read<Exclusive, BecauseExclusive> for SRational
where
T: ?Sized,
impl<T> ToOwned for SRational
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for SRational
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 SRational
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for SRational
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>