pub struct GenericBranch(/* private fields */);Implementations§
Source§impl GenericBranch
impl GenericBranch
pub fn new(obj: Py<PyAny>) -> GenericBranch
Trait Implementations§
Source§impl Branch for GenericBranch
impl Branch for GenericBranch
fn format(&self) -> BranchFormat
fn vcs_type(&self) -> VcsType
fn revno(&self) -> u32
fn lock_read(&self) -> Result<Lock, Error>
fn lock_write(&self) -> Result<Lock, Error>
fn repository(&self) -> Repository
fn last_revision(&self) -> RevisionId
fn name(&self) -> Option<String>
fn basis_tree(&self) -> Result<RevisionTree, Error>
fn get_user_url(&self) -> Url
fn controldir(&self) -> ControlDir
fn push( &self, remote_branch: &dyn Branch, overwrite: bool, stop_revision: Option<&RevisionId>, tag_selector: Option<Box<dyn Fn(String) -> bool>>, ) -> Result<(), Error>
fn pull( &self, source_branch: &dyn Branch, overwrite: Option<bool>, ) -> Result<(), Error>
fn get_parent(&self) -> Option<String>
fn set_parent(&mut self, parent: &str)
fn get_public_branch(&self) -> Option<String>
fn get_push_location(&self) -> Option<String>
fn get_submit_branch(&self) -> Option<String>
fn user_transport(&self) -> Transport
fn get_config(&self) -> BranchConfig
fn get_config_stack(&self) -> ConfigStack
fn sprout( &self, to_controldir: &ControlDir, to_branch_name: &str, ) -> Result<(), Error>
fn create_checkout(&self, to_location: &Path) -> Result<WorkingTree, Error>
fn generate_revision_history( &self, last_revision: &RevisionId, ) -> Result<(), Error>
Source§impl Clone for GenericBranch
impl Clone for GenericBranch
Source§fn clone(&self) -> GenericBranch
fn clone(&self) -> GenericBranch
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl FromPyObject<'_> for GenericBranch
impl FromPyObject<'_> for GenericBranch
Source§fn extract_bound(ob: &Bound<'_, PyAny>) -> Result<GenericBranch, PyErr>
fn extract_bound(ob: &Bound<'_, PyAny>) -> Result<GenericBranch, PyErr>
Source§impl ToPyObject for GenericBranch
impl ToPyObject for GenericBranch
Auto Trait Implementations§
impl Freeze for GenericBranch
impl !RefUnwindSafe for GenericBranch
impl Send for GenericBranch
impl Sync for GenericBranch
impl Unpin for GenericBranch
impl UnwindSafe for GenericBranch
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)