pub struct AstDiff {
pub changes: Vec<AstChange>,
}Expand description
A structured diff between two PEPL ASTs.
Fields§
§changes: Vec<AstChange>Implementations§
Source§impl AstDiff
impl AstDiff
Sourcepub fn validate_scope(&self, scope: &AllowedScope) -> Vec<&AstChange>
pub fn validate_scope(&self, scope: &AllowedScope) -> Vec<&AstChange>
Validate that all changes fall within allowed scopes. Returns the list of out-of-scope changes (empty = all valid).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AstDiff
impl<'de> Deserialize<'de> for AstDiff
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 StructuralPartialEq for AstDiff
Auto Trait Implementations§
impl Freeze for AstDiff
impl RefUnwindSafe for AstDiff
impl Send for AstDiff
impl Sync for AstDiff
impl Unpin for AstDiff
impl UnwindSafe for AstDiff
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