Struct silver_platter::RegularBranch
source · pub struct RegularBranch(/* private fields */);Implementations§
source§impl RegularBranch
impl RegularBranch
pub fn new(obj: Py<PyAny>) -> RegularBranch
Trait Implementations§
source§impl Branch for RegularBranch
impl Branch for RegularBranch
fn format(&self) -> BranchFormat
fn revno(&self) -> u32
fn lock_read(&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 RegularBranch
impl Clone for RegularBranch
source§fn clone(&self) -> RegularBranch
fn clone(&self) -> RegularBranch
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 RegularBranch
impl FromPyObject<'_> for RegularBranch
source§fn extract_bound(ob: &Bound<'_, PyAny>) -> Result<RegularBranch, PyErr>
fn extract_bound(ob: &Bound<'_, PyAny>) -> Result<RegularBranch, PyErr>
source§impl ToPyObject for RegularBranch
impl ToPyObject for RegularBranch
Auto Trait Implementations§
impl Freeze for RegularBranch
impl !RefUnwindSafe for RegularBranch
impl Send for RegularBranch
impl Sync for RegularBranch
impl Unpin for RegularBranch
impl UnwindSafe for RegularBranch
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)