pub struct Meta {
pub elem_id: usize,
pub start: usize,
pub end: usize,
pub location: FileLocation,
pub file_id: Option<usize>,
pub component_inference: Option<String>,
/* private fields */
}Fields
elem_id: usizestart: usizeend: usizelocation: FileLocationfile_id: Option<usize>component_inference: Option<String>Implementations
sourceimpl Meta
impl Meta
pub fn new(start: usize, end: usize) -> Meta
pub fn change_location(&mut self, location: FileLocation, file_id: Option<usize>)
pub fn get_start(&self) -> usize
pub fn get_end(&self) -> usize
pub fn get_file_id(&self) -> usize
pub fn get_memory_knowledge(&self) -> &MemoryKnowledge
pub fn get_type_knowledge(&self) -> &TypeKnowledge
pub fn get_mut_memory_knowledge(&mut self) -> &mut MemoryKnowledge
pub fn get_mut_type_knowledge(&mut self) -> &mut TypeKnowledge
pub fn file_location(&self) -> FileLocation
pub fn set_file_id(&mut self, file_id: usize)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Meta
impl Send for Meta
impl Sync for Meta
impl Unpin for Meta
impl UnwindSafe for Meta
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more