pub enum ConcreteType {
Error,
Tuple(Vec<ConcreteType>),
Struct {
name: NameID,
is_port: bool,
members: Vec<(Identifier, ConcreteType)>,
field_translators: FxHashMap<Identifier, String>,
},
Array {
inner: Box<ConcreteType>,
size: BigInt,
},
Enum {
options: Vec<(NameID, Vec<(Identifier, ConcreteType)>)>,
},
Single {
base: PrimitiveType,
params: Vec<ConcreteType>,
},
Integer(BigInt),
Bool(bool),
String(String),
Backward(Box<ConcreteType>),
Wire(Box<ConcreteType>),
}Variants§
Error
Tuple(Vec<ConcreteType>)
Struct
Array
Enum
Fields
§
options: Vec<(NameID, Vec<(Identifier, ConcreteType)>)>Single
Integer(BigInt)
Bool(bool)
String(String)
Backward(Box<ConcreteType>)
Wire(Box<ConcreteType>)
Implementations§
Source§impl ConcreteType
impl ConcreteType
pub fn assume_struct(&self) -> (&NameID, &Vec<(Identifier, ConcreteType)>)
pub fn is_error_recursively(&self) -> bool
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more