pub struct Scene {
pub width: f64,
pub height: f64,
pub viewports: Vec<Viewport>,
pub overlays: Vec<Primitive>,
pub halo: Vec<Primitive>,
}Expand description
Full drawable document before SVG/HTML serialization.
Python contracts.scene.Scene and JS consumers should mirror this shape
(JSON round-trip is the ABI).
Fields§
§width: f64§height: f64§viewports: Vec<Viewport>§overlays: Vec<Primitive>Document-space primitives (reaction arrows) above viewports.
halo: Vec<Primitive>Single document-space unioned knockout under molecule ink.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Scene
impl<'de> Deserialize<'de> for Scene
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Scene
Auto Trait Implementations§
impl Freeze for Scene
impl RefUnwindSafe for Scene
impl Send for Scene
impl Sync for Scene
impl Unpin for Scene
impl UnsafeUnpin for Scene
impl UnwindSafe for Scene
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