pub enum UnitNameKind {
Unescaped(String),
Escaped {
name: String,
path: Vec<String>,
},
}
Expand description
The name of a verilog module
Variants§
Unescaped(String)
A string that will be directly emitted in verilog. Must be a valid verilog identifier that does not clash with any keywords. The path is the underlying path which results in this entity. This is used when generating instance names to only emit the unit name and not the fully qualified path
Escaped
Any ASCII characters. Will be prepended with \
and have
appended at the
end to give a valid verilog identifier
Trait Implementations§
Source§impl Clone for UnitNameKind
impl Clone for UnitNameKind
Source§fn clone(&self) -> UnitNameKind
fn clone(&self) -> UnitNameKind
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 UnitNameKind
impl Debug for UnitNameKind
Source§impl Hash for UnitNameKind
impl Hash for UnitNameKind
Source§impl Ord for UnitNameKind
impl Ord for UnitNameKind
Source§fn cmp(&self, other: &UnitNameKind) -> Ordering
fn cmp(&self, other: &UnitNameKind) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for UnitNameKind
impl PartialEq for UnitNameKind
Source§impl PartialOrd for UnitNameKind
impl PartialOrd for UnitNameKind
impl Eq for UnitNameKind
impl StructuralPartialEq for UnitNameKind
Auto Trait Implementations§
impl Freeze for UnitNameKind
impl RefUnwindSafe for UnitNameKind
impl Send for UnitNameKind
impl Sync for UnitNameKind
impl Unpin for UnitNameKind
impl UnwindSafe for UnitNameKind
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