pub enum TypeExpression {
Identifier {
name: String,
},
Array {
element_type: Box<TypeExpression>,
},
Union {
types: Vec<TypeExpression>,
},
StringLiteral {
value: String,
},
}Variants§
Identifier
Array
Fields
§
element_type: Box<TypeExpression>Union
Fields
§
types: Vec<TypeExpression>StringLiteral
Trait Implementations§
Source§impl Clone for TypeExpression
impl Clone for TypeExpression
Source§fn clone(&self) -> TypeExpression
fn clone(&self) -> TypeExpression
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TypeExpression
impl Debug for TypeExpression
Source§impl<'de> Deserialize<'de> for TypeExpression
impl<'de> Deserialize<'de> for TypeExpression
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
Auto Trait Implementations§
impl Freeze for TypeExpression
impl RefUnwindSafe for TypeExpression
impl Send for TypeExpression
impl Sync for TypeExpression
impl Unpin for TypeExpression
impl UnsafeUnpin for TypeExpression
impl UnwindSafe for TypeExpression
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