#[repr(C)]pub struct rbs_ast_symbol {
pub base: rbs_node_t,
pub constant_id: rbs_constant_id_t,
}Expand description
rbs_ast_symbol_t models user-defined identifiers like class names, method names, etc.
These get stored in the parser’s own constant pool, and get surfaced to Ruby as Symbols.
Fields§
§base: rbs_node_t§constant_id: rbs_constant_id_tTrait Implementations§
Source§impl Clone for rbs_ast_symbol
impl Clone for rbs_ast_symbol
Source§fn clone(&self) -> rbs_ast_symbol
fn clone(&self) -> rbs_ast_symbol
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for rbs_ast_symbol
Auto Trait Implementations§
impl Freeze for rbs_ast_symbol
impl RefUnwindSafe for rbs_ast_symbol
impl Send for rbs_ast_symbol
impl Sync for rbs_ast_symbol
impl Unpin for rbs_ast_symbol
impl UnsafeUnpin for rbs_ast_symbol
impl UnwindSafe for rbs_ast_symbol
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