Enum libpijul::patch::Patch
[−]
[src]
pub enum Patch { Unsigned(UnsignedPatch), Signed { patch: UnsignedPatch, signature: Signature, }, }
The definition of a patch.
Variants
Unsigned(UnsignedPatch)
Signed
Fields of Signed
patch: UnsignedPatch | |
signature: Signature |
Methods
impl Patch
[src]
fn changes(&self) -> &[Change]
The contents of this patch.
fn changes_mut(&mut self) -> &mut Vec<Change>
fn dependencies(&self) -> &[Hash]
The dependencies of this patch.
fn dependencies_mut(&mut self) -> &mut Vec<Hash>
fn header(&self) -> &PatchHeader
The header of this patch.
fn header_mut(&mut self) -> &mut PatchHeader
impl Patch
[src]
fn size_upper_bound(&self) -> usize
fn from_reader_compressed<R: BufRead>(
r: &mut R
) -> Result<(Hash, Vec<u8>, Patch)>
r: &mut R
) -> Result<(Hash, Vec<u8>, Patch)>
fn to_writer(&self, w: &mut Write) -> Result<()>
fn save<P: AsRef<Path>>(&self, dir: P, key: Option<&KeyPair>) -> Result<Hash>
Save the patch, computing the hash.
Methods from Deref<Target = PatchHeader>
Trait Implementations
impl Debug for Patch
[src]
impl Clone for Patch
[src]
fn clone(&self) -> Patch
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Deref for Patch
[src]
type Target = PatchHeader
The resulting type after dereferencing
fn deref(&self) -> &Self::Target
The method called to dereference a value