pub struct PatchOptions {
pub old_name: String,
pub new_name: String,
pub owner: Attribution,
}Expand description
The names written on the patch’s --- and +++ header lines, and
the document owner (the author and date of every change and comment
that names none).
Fields§
§old_name: StringThe old document’s name, after --- a/.
new_name: StringThe new document’s name, after +++ b/.
owner: AttributionAuthor and date of every change and comment that names none.
Trait Implementations§
Source§impl Clone for PatchOptions
impl Clone for PatchOptions
Source§fn clone(&self) -> PatchOptions
fn clone(&self) -> PatchOptions
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 PatchOptions
impl Debug for PatchOptions
impl Eq for PatchOptions
Source§impl PartialEq for PatchOptions
impl PartialEq for PatchOptions
impl StructuralPartialEq for PatchOptions
Auto Trait Implementations§
impl Forget for PatchOptions
impl Freeze for PatchOptions
impl Move for PatchOptions
impl RefUnwindSafe for PatchOptions
impl Send for PatchOptions
impl Sync for PatchOptions
impl Unpin for PatchOptions
impl UnsafeUnpin for PatchOptions
impl UnwindSafe for PatchOptions
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.