pub struct Env<'a> {
pub fps: f64,
pub canvas: [f64; 2],
pub size: [f64; 2],
pub source: [f64; 2],
pub in_: f64,
pub out: f64,
pub total: f64,
pub source_in: f64,
pub vars: Option<&'a Vars>,
}Expand description
What a range of frames is sampled in: the frame n (on the comp’s or timeline’s rate) maps
to t = n / fps, lt = t − in, st = source_in + lt.
Fields§
§fps: f64§canvas: [f64; 2]Canvas size, px.
size: [f64; 2]Layer box, px.
source: [f64; 2]Source display size, px.
in_: f64§out: f64§total: f64Comp duration, s.
source_in: f64§vars: Option<&'a Vars>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Forget for Env<'a>
impl<'a> Freeze for Env<'a>
impl<'a> RefUnwindSafe for Env<'a>
impl<'a> Send for Env<'a>
impl<'a> Sync for Env<'a>
impl<'a> Unpin for Env<'a>
impl<'a> UnsafeUnpin for Env<'a>
impl<'a> UnwindSafe for Env<'a>
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