pub struct SchemaSourceCapture { /* private fields */ }Expand description
One bounded file capture with observations from before and after the read.
Implementations§
Source§impl SchemaSourceCapture
impl SchemaSourceCapture
Sourcepub const fn new(
bytes: Vec<u8>,
before: SchemaSourceObservation,
after: SchemaSourceObservation,
) -> Self
pub const fn new( bytes: Vec<u8>, before: SchemaSourceObservation, after: SchemaSourceObservation, ) -> Self
Creates a bounded capture. The discovery algorithm rechecks every claim.
Sourcepub const fn before(&self) -> &SchemaSourceObservation
pub const fn before(&self) -> &SchemaSourceObservation
Returns the observation immediately before capture.
Sourcepub const fn after(&self) -> &SchemaSourceObservation
pub const fn after(&self) -> &SchemaSourceObservation
Returns the observation immediately after capture.
Trait Implementations§
Source§impl Clone for SchemaSourceCapture
impl Clone for SchemaSourceCapture
Source§fn clone(&self) -> SchemaSourceCapture
fn clone(&self) -> SchemaSourceCapture
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 SchemaSourceCapture
impl Debug for SchemaSourceCapture
impl Eq for SchemaSourceCapture
Source§impl PartialEq for SchemaSourceCapture
impl PartialEq for SchemaSourceCapture
impl StructuralPartialEq for SchemaSourceCapture
Auto Trait Implementations§
impl Freeze for SchemaSourceCapture
impl RefUnwindSafe for SchemaSourceCapture
impl Send for SchemaSourceCapture
impl Sync for SchemaSourceCapture
impl Unpin for SchemaSourceCapture
impl UnsafeUnpin for SchemaSourceCapture
impl UnwindSafe for SchemaSourceCapture
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