pub struct SliceWrapper {
pub target: SymbolInfoJson,
pub direction: String,
pub included_symbols: Vec<SymbolInfoJson>,
pub symbol_count: usize,
pub statistics: SliceStats,
}Expand description
Serializable wrapper for program slice results
Magellan’s SliceResult doesn’t implement Serialize, so we provide
a wrapper struct that can be serialized to JSON for CLI output.
Fields§
§target: SymbolInfoJsonTarget symbol for the slice
direction: StringDirection of slicing
included_symbols: Vec<SymbolInfoJson>Symbols included in the slice
symbol_count: usizeNumber of symbols in the slice
statistics: SliceStatsStatistics about the slice
Trait Implementations§
Source§impl Clone for SliceWrapper
impl Clone for SliceWrapper
Source§fn clone(&self) -> SliceWrapper
fn clone(&self) -> SliceWrapper
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SliceWrapper
impl Debug for SliceWrapper
Source§impl From<&SliceResult> for SliceWrapper
impl From<&SliceResult> for SliceWrapper
Source§fn from(result: &SliceResult) -> Self
fn from(result: &SliceResult) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SliceWrapper
impl RefUnwindSafe for SliceWrapper
impl Send for SliceWrapper
impl Sync for SliceWrapper
impl Unpin for SliceWrapper
impl UnsafeUnpin for SliceWrapper
impl UnwindSafe for SliceWrapper
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more