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: usize
§start: usize
§end: usize
§location: FileLocation
§file_id: Option<usize>
§component_inference: Option<String>
Implementations§
Source§impl 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 Freeze for Meta
impl RefUnwindSafe for Meta
impl Send for Meta
impl Sync for Meta
impl Unpin for Meta
impl UnwindSafe for Meta
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