pub struct SourceLine {
pub definition: Option<Weak<RefCell<Symbol>>>,
pub references: Vec<Weak<RefCell<Symbol>>>,
pub is_dirty: bool,
pub line_offset: i32,
pub is_origin: bool,
pub data_bytes: Vec<u8>,
pub relative_offset: i32,
pub include_bytes_read: Option<usize>,
}Fields§
§definition: Option<Weak<RefCell<Symbol>>>§references: Vec<Weak<RefCell<Symbol>>>§is_dirty: bool§line_offset: i32§is_origin: bool§data_bytes: Vec<u8>§relative_offset: i32§include_bytes_read: Option<usize>Implementations§
Source§impl SourceLine
impl SourceLine
pub fn new() -> Self
pub fn get_offset(&self) -> i32
pub fn get_byte_count(&self) -> usize
pub fn set_data(&mut self, data: &[u8]) -> i32
pub fn get_data(&self) -> &[u8] ⓘ
pub fn set_offset(&mut self, byte_offset: i32, is_origin: bool)
pub fn adjust_offset(&mut self, offset: i32)
pub fn mark_dirty(&mut self, is_dirty: bool)
pub fn is_dirty(&self) -> bool
pub fn is_origin(&self) -> bool
pub fn set_relative(&mut self, offset: i32)
pub fn get_relative_offset(&self) -> i32
pub fn reset_references(&mut self, self_ref: Weak<RefCell<SourceLine>>)
pub fn add_reference(&mut self, symbol: Weak<RefCell<Symbol>>)
pub fn set_include_bytes_read(&mut self, bytes: usize)
pub fn set_definition( &mut self, symbol: Option<Weak<RefCell<Symbol>>>, self_ref: Weak<RefCell<SourceLine>>, )
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for SourceLine
impl !Send for SourceLine
impl !Sync for SourceLine
impl !UnwindSafe for SourceLine
impl Freeze for SourceLine
impl Unpin for SourceLine
impl UnsafeUnpin for SourceLine
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