pub struct SceneBudget {
pub nodes: usize,
pub depth: usize,
pub encoded_bytes: usize,
pub face_bytes: usize,
}Expand description
One total budget for producing or rendering a Scene.
nodes and depth bound structural growth. encoded_bytes bounds the
whole scene value as encoded data. face_bytes bounds any single rendered
face such as a label, text run, title, or field value.
Fields§
§nodes: usizeMaximum number of scene nodes.
depth: usizeMaximum nesting depth, with the root at depth 0.
encoded_bytes: usizeMaximum encoded bytes for the scene value.
face_bytes: usizeMaximum bytes for one visible face.
Implementations§
Trait Implementations§
Source§impl Clone for SceneBudget
impl Clone for SceneBudget
Source§fn clone(&self) -> SceneBudget
fn clone(&self) -> SceneBudget
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SceneBudget
impl Debug for SceneBudget
impl Eq for SceneBudget
Source§impl PartialEq for SceneBudget
impl PartialEq for SceneBudget
impl StructuralPartialEq for SceneBudget
Auto Trait Implementations§
impl Freeze for SceneBudget
impl RefUnwindSafe for SceneBudget
impl Send for SceneBudget
impl Sync for SceneBudget
impl Unpin for SceneBudget
impl UnsafeUnpin for SceneBudget
impl UnwindSafe for SceneBudget
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