pub struct BackupNode {
pub node_type: String,
pub identifier: String,
pub original_content: String,
pub location: NodeLocation,
}Expand description
Backup of a single AST node before modification
Fields§
§node_type: String§identifier: String§original_content: String§location: NodeLocationTrait Implementations§
Source§impl Clone for BackupNode
impl Clone for BackupNode
Source§fn clone(&self) -> BackupNode
fn clone(&self) -> BackupNode
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 BackupNode
impl Debug for BackupNode
Source§impl<'de> Deserialize<'de> for BackupNode
impl<'de> Deserialize<'de> for BackupNode
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
Auto Trait Implementations§
impl Freeze for BackupNode
impl RefUnwindSafe for BackupNode
impl Send for BackupNode
impl Sync for BackupNode
impl Unpin for BackupNode
impl UnsafeUnpin for BackupNode
impl UnwindSafe for BackupNode
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