Struct rhai::CustomTypeInfo
source · #[non_exhaustive]pub struct CustomTypeInfo {
pub type_name: Identifier,
pub display_name: Identifier,
pub comments: StaticVec<SmartString<LazyCompact>>,
}
Expand description
(internals) Information for a registered custom type.
Exported under the internals
feature only.
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.type_name: Identifier
Rust name of the custom type.
display_name: Identifier
Friendly display name of the custom type.
comments: StaticVec<SmartString<LazyCompact>>
Comments.
Block doc-comments are kept in separate strings.
Line doc-comments are merged, with line-breaks, into a single string without a final termination line-break.
Leading white-spaces are stripped, each string always starting with the corresponding
doc-comment leader: ///
or /**
.
Each line in non-block doc-comments starts with ///
.
Trait Implementations§
source§impl Clone for CustomTypeInfo
impl Clone for CustomTypeInfo
source§fn clone(&self) -> CustomTypeInfo
fn clone(&self) -> CustomTypeInfo
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 CustomTypeInfo
impl Debug for CustomTypeInfo
source§impl Hash for CustomTypeInfo
impl Hash for CustomTypeInfo
source§impl PartialEq for CustomTypeInfo
impl PartialEq for CustomTypeInfo
source§fn eq(&self, other: &CustomTypeInfo) -> bool
fn eq(&self, other: &CustomTypeInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for CustomTypeInfo
impl StructuralPartialEq for CustomTypeInfo
Auto Trait Implementations§
impl Freeze for CustomTypeInfo
impl RefUnwindSafe for CustomTypeInfo
impl Send for CustomTypeInfo
impl Sync for CustomTypeInfo
impl Unpin for CustomTypeInfo
impl UnwindSafe for CustomTypeInfo
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
source§impl<T> Variant for T
impl<T> Variant for T
source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert this
Variant
trait object to &mut dyn Any
.source§fn as_boxed_any(self: Box<T>) -> Box<dyn Any>
fn as_boxed_any(self: Box<T>) -> Box<dyn Any>
Convert this
Variant
trait object to Box<dyn Any>
.