pub enum TargetSize {
View {
numerator: u32,
denominator: u32,
depth: u32,
rounding: Rounding,
},
Fixed {
width: u32,
height: u32,
depth: u32,
},
}Expand description
A target’s size.
Variants§
View
The view’s size times numerator / denominator, each side rounded as rounding says, at least 1 (a
half-resolution target: 1/2). A volume’s depth is stated in depth.
Fixed
A fixed size whatever the view.
Trait Implementations§
Source§impl Clone for TargetSize
impl Clone for TargetSize
impl Copy for TargetSize
Source§impl Debug for TargetSize
impl Debug for TargetSize
Source§impl PartialEq for TargetSize
impl PartialEq for TargetSize
Source§impl Serialize for TargetSize
impl Serialize for TargetSize
impl StructuralPartialEq for TargetSize
Auto Trait Implementations§
impl Forget for TargetSize
impl Freeze for TargetSize
impl RefUnwindSafe for TargetSize
impl Send for TargetSize
impl Sync for TargetSize
impl Unpin for TargetSize
impl UnsafeUnpin for TargetSize
impl UnwindSafe for TargetSize
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