pub enum CodeChangeTruncation {
Hunks,
Lines,
LineBytes,
PatchBytes,
}Expand description
Reason a code-change presentation was deterministically truncated.
Variants§
Hunks
The configured hunk bound was reached.
Lines
The configured line bound was reached.
LineBytes
A retained source line exceeded its byte bound.
PatchBytes
The optional unified patch exceeded its byte bound.
Trait Implementations§
Source§impl Clone for CodeChangeTruncation
impl Clone for CodeChangeTruncation
Source§fn clone(&self) -> CodeChangeTruncation
fn clone(&self) -> CodeChangeTruncation
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 Copy for CodeChangeTruncation
Source§impl Debug for CodeChangeTruncation
impl Debug for CodeChangeTruncation
Source§impl<'de> Deserialize<'de> for CodeChangeTruncation
impl<'de> Deserialize<'de> for CodeChangeTruncation
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 CodeChangeTruncation
Source§impl Ord for CodeChangeTruncation
impl Ord for CodeChangeTruncation
Source§fn cmp(&self, other: &CodeChangeTruncation) -> Ordering
fn cmp(&self, other: &CodeChangeTruncation) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CodeChangeTruncation
impl PartialEq for CodeChangeTruncation
Source§impl PartialOrd for CodeChangeTruncation
impl PartialOrd for CodeChangeTruncation
Source§impl Serialize for CodeChangeTruncation
impl Serialize for CodeChangeTruncation
impl StructuralPartialEq for CodeChangeTruncation
Auto Trait Implementations§
impl Freeze for CodeChangeTruncation
impl RefUnwindSafe for CodeChangeTruncation
impl Send for CodeChangeTruncation
impl Sync for CodeChangeTruncation
impl Unpin for CodeChangeTruncation
impl UnsafeUnpin for CodeChangeTruncation
impl UnwindSafe for CodeChangeTruncation
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