pub struct NodeOptions { /* private fields */ }Expand description
Optional metadata applied when inserting one retained node.
This keeps identity and placement concerns in one place so the builder API
does not need separate keyed_* and *_with_policy method families.
Implementations§
Source§impl NodeOptions
impl NodeOptions
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates default options with automatic placement and no explicit key.
Sourcepub const fn with_policy(policy: Policy) -> Self
pub const fn with_policy(policy: Policy) -> Self
Creates options with an explicit placement policy.
Trait Implementations§
Source§impl Clone for NodeOptions
impl Clone for NodeOptions
Source§fn clone(&self) -> NodeOptions
fn clone(&self) -> NodeOptions
Returns a duplicate 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 NodeOptions
impl Debug for NodeOptions
Source§impl Default for NodeOptions
impl Default for NodeOptions
Source§impl PartialEq for NodeOptions
impl PartialEq for NodeOptions
impl Copy for NodeOptions
impl StructuralPartialEq for NodeOptions
Auto Trait Implementations§
impl Freeze for NodeOptions
impl RefUnwindSafe for NodeOptions
impl Send for NodeOptions
impl Sync for NodeOptions
impl Unpin for NodeOptions
impl UnsafeUnpin for NodeOptions
impl UnwindSafe for NodeOptions
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