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
source§impl<T> ToBorrowedObject for Twhere
T: ToPyObject,
impl<T> ToBorrowedObject for Twhere T: ToPyObject,
source§fn with_borrowed_ptr<F, R>(&self, py: Python<'_>, f: F) -> Rwhere
F: FnOnce(*mut PyObject) -> R,
fn with_borrowed_ptr<F, R>(&self, py: Python<'_>, f: F) -> Rwhere F: FnOnce(*mut PyObject) -> R,
👎Deprecated since 0.17.0: this trait is no longer used by PyO3, use ToPyObject or IntoPy<PyObject>
Converts self into a Python object and calls the specified closure
on the native FFI pointer underlying the Python object. Read more