pub struct ChangesetFile {
pub path: Vec<u8>,
pub data: Option<Arc<[u8]>>,
pub manifest_entry: Option<ManifestEntry>,
}
Expand description
Changeset’s file. Contains path info, internal blob from Mercurial (use file_content for actual file data) and meta information.
Fields§
§path: Vec<u8>
Path.
data: Option<Arc<[u8]>>
Data of file, None
- file was deleted, otherwise it was added or modified.
manifest_entry: Option<ManifestEntry>
Meta information, None
- file was deleted, otherwise it was added or modified.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ChangesetFile
impl RefUnwindSafe for ChangesetFile
impl Send for ChangesetFile
impl Sync for ChangesetFile
impl Unpin for ChangesetFile
impl UnwindSafe for ChangesetFile
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more