[−][src]Struct tiff_encoder::ifd::types::SRATIONAL
Two SLONGs representing, respectively, the numerator and the denominator of a fraction.
Fields
numerator: i32
denominator: i32
Methods
impl SRATIONAL
[src]
pub fn values<T: AsRef<[(i32, i32)]>>(values: T) -> TiffTypeValues<SRATIONAL>
[src]
Constructs a TiffTypeValues
of SRATIONAL
s from a vector of
pairs (numerator, denominator). Both must be i32
values.
pub fn single(numerator: i32, denominator: i32) -> TiffTypeValues<SRATIONAL>
[src]
Constructs a TiffTypeValues
consisting of a single SRATIONAL
from a pair (numerator, denominator). Both values must be i32
.
In other words, marks this SRATIONAL
as the single value of its
field.
Trait Implementations
impl TiffType for SRATIONAL
[src]
impl PartialEq<SRATIONAL> for SRATIONAL
[src]
impl Debug for SRATIONAL
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,