Struct ExDuplicateNode
pub struct ExDuplicateNode<'a, T>{ /* private fields */ }Expand description
Builder for duplicating a node with fine-grained flag control.
Created by Gd::duplicate_node_ex().
See duplicate_node_ex() for complete documentation including
default behavior, panic conditions, and script handling.
Implementations§
§impl<'a, T> ExDuplicateNode<'a, T>
impl<'a, T> ExDuplicateNode<'a, T>
pub fn flags(self, flags: DuplicateFlags) -> ExDuplicateNode<'a, T>
pub fn flags(self, flags: DuplicateFlags) -> ExDuplicateNode<'a, T>
Replaces flags (use | to combine them).
pub fn done(self) -> Gd<T>
pub fn done(self) -> Gd<T>
Complete the duplication and return the duplicated node.
§Panics
On errors, see Gd::duplicate_node_ex(). To check for results, use done_or_null().
pub fn done_or_null(self) -> Option<Gd<T>>
pub fn done_or_null(self) -> Option<Gd<T>>
Complete the duplication and return the duplicated node, or None if it fails.
See Gd::duplicate_node_ex() for details.
Auto Trait Implementations§
impl<'a, T> Freeze for ExDuplicateNode<'a, T>
impl<'a, T> RefUnwindSafe for ExDuplicateNode<'a, T>
impl<'a, T> !Send for ExDuplicateNode<'a, T>
impl<'a, T> !Sync for ExDuplicateNode<'a, T>
impl<'a, T> Unpin for ExDuplicateNode<'a, T>
impl<'a, T> UnwindSafe for ExDuplicateNode<'a, T>
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