Struct rslua_march1917::types::Source
source · Fields§
§pos: usize§length: usize§line: usize§col: usizeImplementations§
source§impl Source
impl Source
sourcepub fn new() -> Self
pub fn new() -> Self
Examples found in repository?
src/ast.rs (line 377)
374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394
pub fn to_stat_info(self) -> StatInfo {
StatInfo {
stat: self,
source: Source::new(),
}
}
}
#[derive(Debug, Clone)]
pub struct StatInfo {
pub stat: Stat,
pub source: Source,
}
impl StatInfo {
pub fn from_stat(stat: Stat) -> Self {
StatInfo {
stat,
source: Source::new(),
}
}