pub struct MarkedSourceMapping { /* private fields */ }Expand description
A data structure that contains markings for both functions and structs. This will be used for printing out error messages and the like.
Implementations
sourceimpl MarkedSourceMapping
 
impl MarkedSourceMapping
pub fn new() -> Self
pub fn mark_code_offset(
    &mut self, 
    function_definition_index: FunctionDefinitionIndex, 
    code_offset: CodeOffset, 
    message: String
)
pub fn mark_function_type_param(
    &mut self, 
    function_definition_index: FunctionDefinitionIndex, 
    type_param_offset: usize, 
    message: String
)
pub fn mark_struct_field(
    &mut self, 
    struct_definition_index: StructDefinitionIndex, 
    field_index: MemberCount, 
    message: String
)
pub fn mark_struct_type_param(
    &mut self, 
    struct_definition_index: StructDefinitionIndex, 
    type_param_offset: usize, 
    message: String
)
Trait Implementations
sourceimpl Debug for MarkedSourceMapping
 
impl Debug for MarkedSourceMapping
sourceimpl Default for MarkedSourceMapping
 
impl Default for MarkedSourceMapping
sourcefn default() -> MarkedSourceMapping
 
fn default() -> MarkedSourceMapping
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for MarkedSourceMapping
impl Send for MarkedSourceMapping
impl Sync for MarkedSourceMapping
impl Unpin for MarkedSourceMapping
impl UnwindSafe for MarkedSourceMapping
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
    T: ?Sized, 
 
impl<T> BorrowMut<T> for T where
    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