Struct silver_platter::Branch
source · pub struct Branch(pub Py<PyAny>);Tuple Fields§
§0: Py<PyAny>Implementations§
source§impl Branch
impl Branch
pub fn new(obj: Py<PyAny>) -> Branch
pub fn format(&self) -> BranchFormat
pub fn lock_read(&self) -> Result<Lock, PyErr>
pub fn repository(&self) -> Repository
pub fn open(url: &Url) -> Result<Branch, BranchOpenError>
pub fn open_containing(url: &Url) -> Result<(Branch, String), BranchOpenError>
pub fn last_revision(&self) -> RevisionId
pub fn name(&self) -> Option<String>
pub fn get_user_url(&self) -> Url
pub fn controldir(&self) -> ControlDir
pub fn push( &self, remote_branch: &Branch, overwrite: bool, stop_revision: Option<&RevisionId>, tag_selector: Option<Box<dyn Fn(String) -> bool, Global>> ) -> Result<(), PyErr>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Branch
impl Send for Branch
impl Sync for Branch
impl Unpin for Branch
impl UnwindSafe for Branch
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