pub struct RATIONAL {
pub numerator: u32,
pub denominator: u32,
}Expand description
Two LONGs representing, respectively, the numerator and the denominator of a fraction.
Fields§
§numerator: u32§denominator: u32Implementations§
Source§impl RATIONAL
impl RATIONAL
Sourcepub fn values<T: AsRef<[(u32, u32)]>>(values: T) -> TiffTypeValues<RATIONAL>
pub fn values<T: AsRef<[(u32, u32)]>>(values: T) -> TiffTypeValues<RATIONAL>
Constructs a TiffTypeValues of RATIONALs from a vector of
pairs (numerator, denominator). Both must be u32 values.
Sourcepub fn single(numerator: u32, denominator: u32) -> TiffTypeValues<RATIONAL>
pub fn single(numerator: u32, denominator: u32) -> TiffTypeValues<RATIONAL>
Constructs a TiffTypeValues consisting of a single RATIONAL
from a pair (numerator, denominator). Both values must be u32.
In other words, marks this RATIONAL as the single value of its
field.
Trait Implementations§
impl StructuralPartialEq for RATIONAL
Auto Trait Implementations§
impl Freeze for RATIONAL
impl RefUnwindSafe for RATIONAL
impl Send for RATIONAL
impl Sync for RATIONAL
impl Unpin for RATIONAL
impl UnwindSafe for RATIONAL
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