pub struct SRATIONAL {
pub numerator: i32,
pub denominator: i32,
}
Expand description
Two SLONGs representing, respectively, the numerator and the denominator of a fraction.
Fields§
§numerator: i32
§denominator: i32
Implementations§
Source§impl SRATIONAL
impl SRATIONAL
Sourcepub fn values<T: AsRef<[(i32, i32)]>>(values: T) -> TiffTypeValues<SRATIONAL>
pub fn values<T: AsRef<[(i32, i32)]>>(values: T) -> TiffTypeValues<SRATIONAL>
Constructs a TiffTypeValues
of SRATIONAL
s from a vector of
pairs (numerator, denominator). Both must be i32
values.
Sourcepub fn single(numerator: i32, denominator: i32) -> TiffTypeValues<SRATIONAL>
pub fn single(numerator: i32, denominator: i32) -> TiffTypeValues<SRATIONAL>
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 StructuralPartialEq for SRATIONAL
Auto Trait Implementations§
impl Freeze for SRATIONAL
impl RefUnwindSafe for SRATIONAL
impl Send for SRATIONAL
impl Sync for SRATIONAL
impl Unpin for SRATIONAL
impl UnwindSafe for SRATIONAL
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more