pub struct TransformResult {
pub output: Vec<u8>,
pub edits: Vec<Edit>,
pub report: ScanReport,
pub source_map: SourceMap,
}Expand description
The bytes a transformation would write, and the account of how.
Fields§
§output: Vec<u8>The transformed source. Serde renders it as a lossy UTF-8 string.
edits: Vec<Edit>The edits that turned the source into Self::output, sorted and
non-overlapping.
report: ScanReportThe scan those edits were decided from.
source_map: SourceMapWhere every byte of the source ended up.
Trait Implementations§
Source§impl Clone for TransformResult
impl Clone for TransformResult
Source§fn clone(&self) -> TransformResult
fn clone(&self) -> TransformResult
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 TransformResult
impl Debug for TransformResult
Source§impl Default for TransformResult
impl Default for TransformResult
Source§fn default() -> TransformResult
fn default() -> TransformResult
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TransformResult
impl<'de> Deserialize<'de> for TransformResult
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TransformResult
Source§impl PartialEq for TransformResult
impl PartialEq for TransformResult
Source§impl Serialize for TransformResult
impl Serialize for TransformResult
impl StructuralPartialEq for TransformResult
Auto Trait Implementations§
impl Freeze for TransformResult
impl RefUnwindSafe for TransformResult
impl Send for TransformResult
impl Sync for TransformResult
impl Unpin for TransformResult
impl UnsafeUnpin for TransformResult
impl UnwindSafe for TransformResult
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