#[non_exhaustive]pub struct SceneOptions {
pub origin: Origin,
pub max_visits: usize,
pub max_path_bytes: usize,
}Expand description
Options for RenderScene::from_composition.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.origin: OriginThe render origin; Origin::Auto by default.
max_visits: usizeMost node visits of the walk, counting a node once per path that
reaches it; DEFAULT_MAX_VISITS by
default. See Limits.
max_path_bytes: usizeMost bytes of node paths the walk builds, summed over every visit;
DEFAULT_MAX_PATH_BYTES by default.
Bounds the memory of instance paths in deep trees with long names.
See Limits.
Implementations§
Source§impl SceneOptions
impl SceneOptions
Sourcepub const DEFAULT_MAX_VISITS: usize = 10_000_000usize
pub const DEFAULT_MAX_VISITS: usize = 10_000_000usize
Default of max_visits: 10 million.
Sourcepub const DEFAULT_MAX_PATH_BYTES: usize = 1_073_741_824usize
pub const DEFAULT_MAX_PATH_BYTES: usize = 1_073_741_824usize
Default of max_path_bytes: 1 GiB.
Sourcepub fn with_origin(self, origin: Origin) -> Self
pub fn with_origin(self, origin: Origin) -> Self
Sets the render origin.
Sourcepub fn with_max_visits(self, max_visits: usize) -> Self
pub fn with_max_visits(self, max_visits: usize) -> Self
Sets max_visits.
Sourcepub fn with_max_path_bytes(self, max_path_bytes: usize) -> Self
pub fn with_max_path_bytes(self, max_path_bytes: usize) -> Self
Sets max_path_bytes.
Trait Implementations§
Source§impl Clone for SceneOptions
impl Clone for SceneOptions
Source§fn clone(&self) -> SceneOptions
fn clone(&self) -> SceneOptions
Returns a copy of the value. Read more
1.0.0 · 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 SceneOptions
impl Debug for SceneOptions
Source§impl Default for SceneOptions
impl Default for SceneOptions
Source§impl PartialEq for SceneOptions
impl PartialEq for SceneOptions
impl StructuralPartialEq for SceneOptions
Auto Trait Implementations§
impl Freeze for SceneOptions
impl RefUnwindSafe for SceneOptions
impl Send for SceneOptions
impl Sync for SceneOptions
impl Unpin for SceneOptions
impl UnwindSafe for SceneOptions
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