You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
241 B
Rust
15 lines
241 B
Rust
4 years ago
|
#[derive(Debug, Default)]
|
||
|
pub struct Symbol<'a> {
|
||
|
pub index: u32,
|
||
|
pub str_ref: Option<&'a str>,
|
||
|
}
|
||
|
|
||
|
impl Symbol<'_> {
|
||
|
pub fn new(index: u32) -> Self {
|
||
|
Self {
|
||
|
index,
|
||
|
str_ref: None,
|
||
|
}
|
||
|
}
|
||
|
}
|