pub struct RegisteredType {
pub rust: String,
pub expr: TypeExpr,
}Expand description
Registered mapping between a Rust type name and a TypeExpr.
use daedalus_data::model::{TypeExpr, ValueType};
use daedalus_data::typing::register_type;
register_type::<u32>(TypeExpr::Scalar(ValueType::U32));Fields§
§rust: String§expr: TypeExprTrait Implementations§
Source§impl Clone for RegisteredType
impl Clone for RegisteredType
Source§fn clone(&self) -> RegisteredType
fn clone(&self) -> RegisteredType
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 RegisteredType
impl Debug for RegisteredType
Source§impl<'de> Deserialize<'de> for RegisteredType
impl<'de> Deserialize<'de> for RegisteredType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RegisteredType
impl PartialEq for RegisteredType
Source§impl Serialize for RegisteredType
impl Serialize for RegisteredType
impl Eq for RegisteredType
impl StructuralPartialEq for RegisteredType
Auto Trait Implementations§
impl Freeze for RegisteredType
impl RefUnwindSafe for RegisteredType
impl Send for RegisteredType
impl Sync for RegisteredType
impl Unpin for RegisteredType
impl UnwindSafe for RegisteredType
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