#[non_exhaustive]pub enum Canvas {
Raster {
width: u32,
height: u32,
pixel_format: PixelFormat,
},
Vector {
width: f32,
height: f32,
unit: LengthUnit,
},
}Expand description
Canvas — either pixel-based (NLE, compositor) or vector-coord (PDF pages).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Raster
Pixel raster. Used by the streaming compositor and the NLE timeline.
Vector
Unit-agnostic vector canvas. PDF pages use this; the unit is whatever the producer declared. All scene coordinates live in this unit; rasterisation happens at export time.
Implementations§
Trait Implementations§
impl Copy for Canvas
impl StructuralPartialEq for Canvas
Auto Trait Implementations§
impl Freeze for Canvas
impl RefUnwindSafe for Canvas
impl Send for Canvas
impl Sync for Canvas
impl Unpin for Canvas
impl UnsafeUnpin for Canvas
impl UnwindSafe for Canvas
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