Struct breezyshim::tree::RevisionTree
source · pub struct RevisionTree(pub PyObject);Tuple Fields§
§0: PyObjectImplementations§
source§impl RevisionTree
impl RevisionTree
pub fn repository(&self) -> Repository
pub fn get_revision_id(&self) -> RevisionId
pub fn get_parent_ids(&self) -> Vec<RevisionId>
Trait Implementations§
source§impl Clone for RevisionTree
impl Clone for RevisionTree
source§impl ToPyObject for RevisionTree
impl ToPyObject for RevisionTree
source§impl Tree for RevisionTree
impl Tree for RevisionTree
fn get_tag_dict(&self) -> Result<HashMap<String, RevisionId>, Error>
fn get_file(&self, path: &Path) -> Result<Box<dyn Read>, Error>
fn get_file_text(&self, path: &Path) -> Result<Vec<u8>, Error>
fn get_file_lines(&self, path: &Path) -> Result<Vec<Vec<u8>>, Error>
fn lock_read(&self) -> Result<Lock, Error>
fn has_filename(&self, path: &Path) -> bool
fn get_symlink_target(&self, path: &Path) -> Result<PathBuf, Error>
fn get_parent_ids(&self) -> Result<Vec<RevisionId>, Error>
fn is_ignored(&self, path: &Path) -> Option<String>
fn kind(&self, path: &Path) -> Result<Kind, Error>
fn is_versioned(&self, path: &Path) -> bool
fn iter_changes( &self, other: &dyn Tree, specific_files: Option<&[&Path]>, want_unversioned: Option<bool>, require_versioned: Option<bool>, ) -> Result<Box<dyn Iterator<Item = Result<TreeChange, Error>>>, Error>
fn has_versioned_directories(&self) -> bool
fn preview_transform(&self) -> Result<TreeTransform, Error>
fn list_files( &self, include_root: Option<bool>, from_dir: Option<&Path>, recursive: Option<bool>, recurse_nested: Option<bool>, ) -> Result<Box<dyn Iterator<Item = Result<(PathBuf, bool, Kind, TreeEntry), Error>>>, Error>
fn iter_child_entries( &self, path: &Path, ) -> Result<Box<dyn Iterator<Item = Result<(PathBuf, Kind, TreeEntry), Error>>>, Error>
Auto Trait Implementations§
impl Freeze for RevisionTree
impl !RefUnwindSafe for RevisionTree
impl Send for RevisionTree
impl Sync for RevisionTree
impl Unpin for RevisionTree
impl UnwindSafe for RevisionTree
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)