pub struct ValidationContext<'a> { /* private fields */ }Expand description
The single immutable repository view shared by composed domain validators.
The snapshot contains canonical structured resources. Entity-context Markdown remains part of generic validation and is deliberately not included here.
Implementations§
Source§impl<'a> ValidationContext<'a>
impl<'a> ValidationContext<'a>
Sourcepub fn repository_root(&self) -> &'a Path
pub fn repository_root(&self) -> &'a Path
The root used for this validation pass.
Sourcepub fn snapshot(&self) -> &'a RepositorySnapshot
pub fn snapshot(&self) -> &'a RepositorySnapshot
The shared, read-only structured repository snapshot.
Trait Implementations§
Source§impl<'a> Clone for ValidationContext<'a>
impl<'a> Clone for ValidationContext<'a>
Source§fn clone(&self) -> ValidationContext<'a>
fn clone(&self) -> ValidationContext<'a>
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 moreimpl<'a> Copy for ValidationContext<'a>
Auto Trait Implementations§
impl<'a> Freeze for ValidationContext<'a>
impl<'a> RefUnwindSafe for ValidationContext<'a>
impl<'a> Send for ValidationContext<'a>
impl<'a> Sync for ValidationContext<'a>
impl<'a> Unpin for ValidationContext<'a>
impl<'a> UnsafeUnpin for ValidationContext<'a>
impl<'a> UnwindSafe for ValidationContext<'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