pub struct VarId {
pub start_byte: usize,
pub end_byte: usize,
}Expand description
Уникальный идентификатор декларации переменной. Используется для различения переменных по их положению в исходном коде. start_byte и end_byte — это байтовые диапазоны узла идентификатора в дереве разбора.
Fields§
§start_byte: usizeНачальная позиция идентификатора переменной в байтах
end_byte: usizeКонечная позиция идентификатора переменной в байтах
Trait Implementations§
impl Copy for VarId
Source§impl<'de> Deserialize<'de> for VarId
impl<'de> Deserialize<'de> for VarId
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for VarId
impl StructuralPartialEq for VarId
Auto Trait Implementations§
impl Freeze for VarId
impl RefUnwindSafe for VarId
impl Send for VarId
impl Sync for VarId
impl Unpin for VarId
impl UnsafeUnpin for VarId
impl UnwindSafe for VarId
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