pub enum Bundle {
Letters(String),
Digits(String),
Special(char),
StringLiteral(String),
BitLiteral(char),
ExtendedIdent(String),
Space,
Comment,
}
Expand description
A bundle of characters. These are the most fundamental groups of characters as per the VHDL standard. Lexical analysis will aggregate one or more of these into more meaningful tokens.
Variants
Letters(String)
Digits(String)
Special(char)
StringLiteral(String)
BitLiteral(char)
ExtendedIdent(String)
Space
Comment
Implementations
sourceimpl Bundle
impl Bundle
sourcepub fn is_significant(&self) -> bool
pub fn is_significant(&self) -> bool
Check whether the bundle has syntactic significance, i.e. is not a comment or space.
Trait Implementations
impl Eq for Bundle
impl StructuralEq for Bundle
impl StructuralPartialEq for Bundle
Auto Trait Implementations
impl RefUnwindSafe for Bundle
impl Send for Bundle
impl Sync for Bundle
impl Unpin for Bundle
impl UnwindSafe for Bundle
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more