pub struct Scene {
pub root: Node,
pub images: ImageFiles,
pub fonts: FontFiles,
pub themed: bool,
pub ids: Ids,
}Expand description
A resolved design: its tree, each distinct image file its Images show and
font file its texts are set in, and whether it is themed — whether any
theme. reference reached its nodes.
Fields§
§root: NodeThe tree’s root node: the root design’s Frame.
images: ImageFilesEach distinct image file the scene’s Images show, by id.
fonts: FontFilesEach font file the scene’s texts are set in, by id.
themed: boolWhether any theme. reference reached the scene’s nodes, so its two
themes can differ.
ids: IdsWhere each node is, by its id: what a patch finds its nodes by.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Scene
impl !UnwindSafe for Scene
impl Forget for Scene
impl Freeze for Scenewhere
*const u8 is !null: Freeze,
PhantomData<u32>: Freeze,
PhantomData<u8>: Freeze,
PhantomData<(Color, f32)>: Freeze,
*const LeafNode<OrderKey, Node> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(OrderKey, Node)>>: Freeze,
*const LeafNode<ImageId, Arc<ImageFile>> is !null: Freeze,
PhantomData<Box<(ImageId, Arc<ImageFile>)>>: Freeze,
*const LeafNode<FontId, Arc<FontFile>> is !null: Freeze,
PhantomData<Box<(FontId, Arc<FontFile>)>>: Freeze,
PhantomData<(NodeId, Vec<OrderKey>)>: Freeze,
impl Move for Scene
impl Send for Scenewhere
RawVecInner: Send,
NodeRef<Owned, OrderKey, Node, LeafOrInternal>: Send,
BoxRaw<(OrderKey, Node)>: Send,
NodeRef<Owned, ImageId, Arc<ImageFile>, LeafOrInternal>: Send,
BoxRaw<(ImageId, Arc<ImageFile>)>: Send,
NodeRef<Owned, FontId, Arc<FontFile>, LeafOrInternal>: Send,
BoxRaw<(FontId, Arc<FontFile>)>: Send,
RawTable<(NodeId, Vec<OrderKey>)>: Send,
impl Sync for Scenewhere
RawVecInner: Sync,
NodeRef<Owned, OrderKey, Node, LeafOrInternal>: Sync,
BoxRaw<(OrderKey, Node)>: Sync,
NodeRef<Owned, ImageId, Arc<ImageFile>, LeafOrInternal>: Sync,
BoxRaw<(ImageId, Arc<ImageFile>)>: Sync,
NodeRef<Owned, FontId, Arc<FontFile>, LeafOrInternal>: Sync,
BoxRaw<(FontId, Arc<FontFile>)>: Sync,
RawTable<(NodeId, Vec<OrderKey>)>: Sync,
impl Unpin for Scenewhere
*const u8 is !null: Unpin,
*const LeafNode<OrderKey, Node> is !null: Unpin,
Box<(OrderKey, Node)>: Unpin,
*const LeafNode<ImageId, Arc<ImageFile>> is !null: Unpin,
Box<(ImageId, Arc<ImageFile>)>: Unpin,
*const LeafNode<FontId, Arc<FontFile>> is !null: Unpin,
Box<(FontId, Arc<FontFile>)>: Unpin,
Box<[u8]>: Unpin,
impl UnsafeUnpin for Scenewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u32>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<(Color, f32)>: UnsafeUnpin,
*const LeafNode<OrderKey, Node> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(OrderKey, Node)>>: UnsafeUnpin,
*const LeafNode<ImageId, Arc<ImageFile>> is !null: UnsafeUnpin,
PhantomData<Box<(ImageId, Arc<ImageFile>)>>: UnsafeUnpin,
*const LeafNode<FontId, Arc<FontFile>> is !null: UnsafeUnpin,
PhantomData<Box<(FontId, Arc<FontFile>)>>: UnsafeUnpin,
PhantomData<(NodeId, Vec<OrderKey>)>: UnsafeUnpin,
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