pub enum ConcreteType {
Tuple(Vec<ConcreteType>),
Struct {
name: NameID,
is_port: bool,
members: Vec<(Identifier, ConcreteType)>,
},
Array {
inner: Box<ConcreteType>,
size: BigInt,
},
Enum {
options: Vec<(NameID, Vec<(Identifier, ConcreteType)>)>,
},
Single {
base: PrimitiveType,
params: Vec<ConcreteType>,
},
Integer(BigInt),
Bool(bool),
Backward(Box<ConcreteType>),
Wire(Box<ConcreteType>),
}Variants§
Tuple(Vec<ConcreteType>)
Struct
Array
Enum
Fields
§
options: Vec<(NameID, Vec<(Identifier, ConcreteType)>)>Single
Integer(BigInt)
Bool(bool)
Backward(Box<ConcreteType>)
Wire(Box<ConcreteType>)
Implementations§
Source§impl ConcreteType
impl ConcreteType
pub fn assume_struct(&self) -> (&NameID, &Vec<(Identifier, ConcreteType)>)
pub fn is_port(&self) -> bool
Trait Implementations§
Source§impl Clone for ConcreteType
impl Clone for ConcreteType
Source§fn clone(&self) -> ConcreteType
fn clone(&self) -> ConcreteType
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 ConcreteType
impl Debug for ConcreteType
Source§impl<'de> Deserialize<'de> for ConcreteType
impl<'de> Deserialize<'de> for ConcreteType
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 Display for ConcreteType
impl Display for ConcreteType
Source§impl PartialEq for ConcreteType
impl PartialEq for ConcreteType
Source§impl Serialize for ConcreteType
impl Serialize for ConcreteType
impl StructuralPartialEq for ConcreteType
Auto Trait Implementations§
impl Freeze for ConcreteType
impl RefUnwindSafe for ConcreteType
impl Send for ConcreteType
impl Sync for ConcreteType
impl Unpin for ConcreteType
impl UnwindSafe for ConcreteType
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