Struct symbolic_symcache::SymCacheConverter
source · pub struct SymCacheConverter<'a> { /* private fields */ }
Expand description
The SymCache Converter.
This can convert data in various source formats to an intermediate representation, which can
then be serialized to disk via its serialize
method.
Implementations§
source§impl<'a> SymCacheConverter<'a>
impl<'a> SymCacheConverter<'a>
sourcepub fn add_transformer<T>(&mut self, t: T)where
T: Transformer + 'a,
pub fn add_transformer<T>(&mut self, t: T)where T: Transformer + 'a,
Adds a new transform::Transformer
to this SymCacheConverter
.
Every transform::Function
and transform::SourceLocation
will be passed through
this transformer before it is written to the SymCache.
sourcepub fn set_debug_id(&mut self, debug_id: DebugId)
pub fn set_debug_id(&mut self, debug_id: DebugId)
Sets the debug identifier of this SymCache.
sourcepub fn process_object<'d, 'o, O>(&mut self, object: &'o O) -> Result<(), Error>where
O: ObjectLike<'d, 'o>,
O::Error: Error + Send + Sync + 'static,
pub fn process_object<'d, 'o, O>(&mut self, object: &'o O) -> Result<(), Error>where O: ObjectLike<'d, 'o>, O::Error: Error + Send + Sync + 'static,
This processes the given ObjectLike
object, collecting all its functions and line
information into the converter.
sourcepub fn process_symbolic_function(&mut self, function: &Function<'_>)
pub fn process_symbolic_function(&mut self, function: &Function<'_>)
Processes an individual Function
, adding its line information to the converter.
sourcepub fn process_symbolic_symbol(&mut self, symbol: &Symbol<'_>)
pub fn process_symbolic_symbol(&mut self, symbol: &Symbol<'_>)
Processes an individual Symbol
.
Trait Implementations§
source§impl<'a> Debug for SymCacheConverter<'a>
impl<'a> Debug for SymCacheConverter<'a>
source§impl<'a> Default for SymCacheConverter<'a>
impl<'a> Default for SymCacheConverter<'a>
source§fn default() -> SymCacheConverter<'a>
fn default() -> SymCacheConverter<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for SymCacheConverter<'a>
impl<'a> !Send for SymCacheConverter<'a>
impl<'a> !Sync for SymCacheConverter<'a>
impl<'a> Unpin for SymCacheConverter<'a>
impl<'a> !UnwindSafe for SymCacheConverter<'a>
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
§impl<I, T> ExtractContext<I, ()> for T
impl<I, T> ExtractContext<I, ()> for T
§fn extract_context(self, _original_input: I)
fn extract_context(self, _original_input: I)
Given the context attached to a nom error, and given the original
input to the nom parser, extract more the useful context information. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<I> RecreateContext<I> for I
impl<I> RecreateContext<I> for I
§fn recreate_context(_original_input: I, tail: I) -> I
fn recreate_context(_original_input: I, tail: I) -> I
Given the original input, as well as the context reported by nom,
recreate a context in the original string where the error occurred. Read more