pub enum TypeRef {
Unit,
Bool,
Int,
Float,
Text,
Named(Vec<String>),
Optional(Box<TypeRef>),
List(Box<TypeRef>),
}Expand description
Bern’s view of a Rust type used in declarations.
Variants§
Unit
Bool
Int
Float
Text
Named(Vec<String>)
A declared enum, record or handle type; the path is kept for resolution and the last segment names the type.
Optional(Box<TypeRef>)
List(Box<TypeRef>)
Implementations§
Trait Implementations§
impl Eq for TypeRef
impl StructuralPartialEq for TypeRef
Auto Trait Implementations§
impl Freeze for TypeRef
impl RefUnwindSafe for TypeRef
impl Send for TypeRef
impl Sync for TypeRef
impl Unpin for TypeRef
impl UnsafeUnpin for TypeRef
impl UnwindSafe for TypeRef
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