pub struct ScriptedNodesTree { /* private fields */ }
Implementations§
Source§impl ScriptedNodesTree
impl ScriptedNodesTree
pub fn empty() -> Self
pub fn new<T: 'static>(data: T) -> Self
pub fn new_raw(object: DynamicManaged) -> Self
pub fn name(self, name: impl Into<Cow<'static, str>>) -> Self
pub fn inactive(self) -> Self
pub fn component<T: Component>(self, component: T) -> Self
pub fn child(self, f: impl FnOnce() -> Self + Send + Sync + 'static) -> Self
pub fn setup(self, function: ScriptFunctionReference) -> Self
pub fn bind(self, f: impl FnOnce(Entity) + Send + Sync + 'static) -> Self
Auto Trait Implementations§
impl Freeze for ScriptedNodesTree
impl !RefUnwindSafe for ScriptedNodesTree
impl Send for ScriptedNodesTree
impl Sync for ScriptedNodesTree
impl Unpin for ScriptedNodesTree
impl !UnwindSafe for ScriptedNodesTree
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