pub struct RustType<T>(/* private fields */);Expand description
A static TypeRef defined in Rust.
Implementations§
source§impl<T> RustType<T>
impl<T> RustType<T>
sourcepub const fn new(
name: &'static str,
init: fn(_: RustTypeBuilder<T>) -> RustTypeBuilder<T>,
) -> Self
pub const fn new( name: &'static str, init: fn(_: RustTypeBuilder<T>) -> RustTypeBuilder<T>, ) -> Self
Returns a new type of the given name and initializer.
Methods from Deref<Target = TypeRef>§
sourcepub fn as_any_dynamic(&self) -> AnyDynamic
pub fn as_any_dynamic(&self) -> AnyDynamic
Returns a weak, typeless reference to this value.
sourcepub fn as_any_root(&self) -> AnyDynamicRoot
pub fn as_any_root(&self) -> AnyDynamicRoot
Returns this value as a typeless root reference.
Trait Implementations§
Auto Trait Implementations§
impl<T> !Freeze for RustType<T>
impl<T> !RefUnwindSafe for RustType<T>
impl<T> Send for RustType<T>
impl<T> Sync for RustType<T>
impl<T> Unpin for RustType<T>
impl<T> !UnwindSafe for RustType<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