[−][src]Enum moore_svlog::ast::DataTypeData
A data type.
From §A.2.2.1 (extended to be context-free):
data_type ::=
integer_vector_type signing? packed_dimension*
integer_atom_type signing?
non_integer_type
("struct"|"union") ("packed" signing?)? "{" struct_union_member+ "}" packed_dimension*
"enum" enum_base_type? "{" enum_name_declaration ("," enum_name_declaration)* "}" packed_dimension*
"string"
"chandle"
path_segment ("::" path_segment)* packed_dimension*
"event"
type_reference
path_segment ::=
"$unit"
package_identifier
class_identifier (param_value_assignment)?
type_identifier
Variants
An integer type, like bit
, logic signed
, reg signed [42:0]
, int
,
or int unsigned
.
Fields of Int
Real(RealType)
A real type.
A struct or union type.
Fields of Struct
def: Node<'a, StructData<'a>>
packed_dims: Vec<Node<'a, PackedDimData<'a>>, Global>
An enum type.
A string
.
A chandle
.
A named type.
Fields of Named
path: Vec<Node<'a, PathSegmentData<'a>>, Global>
packed_dims: Vec<Node<'a, PackedDimData<'a>>, Global>
An event
.
TypeRef(Box<TypeOrExpr<'a>, Global>)
A type reference, like type(<type>)
or type(<expr>)
.
Trait Implementations
impl<'a> AcceptVisitor<'a> for DataTypeData<'a>
[src]
impl<'a> AnyNodeData for DataTypeData<'a>
[src]
pub fn get_name(&self) -> Option<Spanned<Name>>
[src]
pub fn fmt_indefinite(&self, fmt: &mut Formatter<'_>) -> Result<(), Error>
[src]
pub fn fmt_definite(&self, fmt: &mut Formatter<'_>) -> Result<(), Error>
[src]
pub fn as_data(&self) -> &dyn AnyNodeData
[src]
pub fn format_indefinite(&self) -> FormatNodeIndefinite<'_>
[src]
pub fn format_definite(&self) -> FormatNodeDefinite<'_>
[src]
pub fn to_indefinite_string(&self) -> String
[src]
pub fn to_definite_string(&self) -> String
[src]
impl<'a> Clone for DataTypeData<'a>
[src]
pub fn clone(&self) -> DataTypeData<'a>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a> Debug for DataTypeData<'a>
[src]
impl<'a> Eq for DataTypeData<'a>
[src]
impl<'a> ForEachChild<'a> for DataTypeData<'a>
[src]
pub fn for_each_child(
&'a self,
each: &mut dyn FnMut(&'a (dyn AnyNode<'a> + 'a))
)
[src]
&'a self,
each: &mut dyn FnMut(&'a (dyn AnyNode<'a> + 'a))
)
impl<'a> ForEachNode<'a> for DataTypeData<'a>
[src]
pub fn for_each_node(&'a self, each: &mut dyn FnMut(&'a (dyn AnyNode<'a> + 'a)))
[src]
impl<'a> PartialEq<DataTypeData<'a>> for DataTypeData<'a>
[src]
pub fn eq(&self, other: &DataTypeData<'a>) -> bool
[src]
pub fn ne(&self, other: &DataTypeData<'a>) -> bool
[src]
impl<'a> StructuralEq for DataTypeData<'a>
[src]
impl<'a> StructuralPartialEq for DataTypeData<'a>
[src]
Auto Trait Implementations
impl<'a> !RefUnwindSafe for DataTypeData<'a>
[src]
impl<'a> Send for DataTypeData<'a>
[src]
impl<'a> Sync for DataTypeData<'a>
[src]
impl<'a> Unpin for DataTypeData<'a>
[src]
impl<'a> !UnwindSafe for DataTypeData<'a>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow(&self) -> &TⓘNotable traits for &'_ mut R
impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;
[src]
Notable traits for &'_ mut R
impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut TⓘNotable traits for &'_ mut R
impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;
[src]
Notable traits for &'_ mut R
impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a TⓘNotable traits for &'_ mut R
impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;
Notable traits for &'_ mut R
impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut TⓘNotable traits for &'_ mut R
impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;
Notable traits for &'_ mut R
impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;
pub unsafe fn drop(ptr: usize)
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,