pub struct ShapesPlan { /* private fields */ }Expand description
A content tree with its static parts evaluated once.
Implementations§
Source§impl ShapesPlan
impl ShapesPlan
Sourcepub fn new(items: &[ShapeItem]) -> Self
pub fn new(items: &[ShapeItem]) -> Self
Plans items, evaluating every subtree that does not animate.
Sourcepub fn evaluate(&self, time: MediaTime, aspect: f64) -> Arc<[EvaluatedItem]> ⓘ
pub fn evaluate(&self, time: MediaTime, aspect: f64) -> Arc<[EvaluatedItem]> ⓘ
The tree at time. aspect (width per unit height) shapes motion along spatial curves.
Sourcepub fn is_animated(&self) -> bool
pub fn is_animated(&self) -> bool
Whether anything in the tree animates.
Trait Implementations§
Source§impl Clone for ShapesPlan
impl Clone for ShapesPlan
Source§impl Debug for ShapesPlan
impl Debug for ShapesPlan
Source§impl PartialEq for ShapesPlan
impl PartialEq for ShapesPlan
impl StructuralPartialEq for ShapesPlan
Auto Trait Implementations§
impl Forget for ShapesPlan
impl Freeze for ShapesPlanwhere
*const u8 is !null: Freeze,
PhantomData<Planned>: Freeze,
*const ArcInner<[EvaluatedItem]> is !null: Freeze,
PhantomData<ArcInner<[EvaluatedItem]>>: Freeze,
impl Move for ShapesPlan
impl RefUnwindSafe for ShapesPlan
impl Send for ShapesPlanwhere
RawVecInner: Send,
Arc<[EvaluatedItem]>: Send,
Arc<EvaluatedPath>: Send,
BoxRaw<DataBinding>: Send,
impl Sync for ShapesPlanwhere
RawVecInner: Sync,
Arc<[EvaluatedItem]>: Sync,
Arc<EvaluatedPath>: Sync,
BoxRaw<DataBinding>: Sync,
impl Unpin for ShapesPlanwhere
*const u8 is !null: Unpin,
Arc<[EvaluatedItem]>: Unpin,
Arc<EvaluatedPath>: Unpin,
Box<DataBinding>: Unpin,
impl UnsafeUnpin for ShapesPlanwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<Planned>: UnsafeUnpin,
*const ArcInner<[EvaluatedItem]> is !null: UnsafeUnpin,
PhantomData<ArcInner<[EvaluatedItem]>>: UnsafeUnpin,
impl UnwindSafe for ShapesPlanwhere
RawVecInner: UnwindSafe,
Arc<[EvaluatedItem]>: UnwindSafe,
Arc<EvaluatedPath>: UnwindSafe,
BoxRaw<DataBinding>: UnwindSafe,
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