pub struct StructuredConflict {
pub format_version: u8,
pub conflicts: Vec<ConflictSymbol>,
}Fields§
§format_version: u8§conflicts: Vec<ConflictSymbol>Implementations§
Source§impl StructuredConflict
impl StructuredConflict
pub const FORMAT_VERSION: u8 = 1
pub fn new(conflicts: Vec<ConflictSymbol>) -> Self
pub fn encode(&self) -> Result<Vec<u8>, ConflictError>
pub fn decode(bytes: &[u8]) -> Result<Self, ConflictError>
pub fn validate(&self) -> Result<(), ConflictError>
Trait Implementations§
Source§impl Clone for StructuredConflict
impl Clone for StructuredConflict
Source§fn clone(&self) -> StructuredConflict
fn clone(&self) -> StructuredConflict
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 StructuredConflict
impl Debug for StructuredConflict
Source§impl<'de> Deserialize<'de> for StructuredConflict
impl<'de> Deserialize<'de> for StructuredConflict
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 StructuredConflict
Source§impl PartialEq for StructuredConflict
impl PartialEq for StructuredConflict
Source§fn eq(&self, other: &StructuredConflict) -> bool
fn eq(&self, other: &StructuredConflict) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for StructuredConflict
impl Serialize for StructuredConflict
impl StructuralPartialEq for StructuredConflict
Auto Trait Implementations§
impl Freeze for StructuredConflict
impl RefUnwindSafe for StructuredConflict
impl Send for StructuredConflict
impl Sync for StructuredConflict
impl Unpin for StructuredConflict
impl UnsafeUnpin for StructuredConflict
impl UnwindSafe for StructuredConflict
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