pub struct ControlDirFormat(/* private fields */);Expand description
The format of a control directory.
This struct represents the format of a control directory, which defines how the control directory is stored on disk and what capabilities it has.
Implementations§
Source§impl ControlDirFormat
impl ControlDirFormat
Sourcepub fn get_format_string(&self) -> Vec<u8> ⓘ
pub fn get_format_string(&self) -> Vec<u8> ⓘ
Get the format string for this control directory format.
§Returns
The format string as a byte vector.
Sourcepub fn get_format_description(&self) -> String
pub fn get_format_description(&self) -> String
Get a human-readable description of this control directory format.
§Returns
A string describing this control directory format.
Sourcepub fn is_control_filename(&self, filename: &str) -> bool
pub fn is_control_filename(&self, filename: &str) -> bool
Sourcepub fn initialize_on_transport(
&self,
transport: &Transport,
) -> Result<Box<dyn ControlDir<Branch = GenericBranch, Repository = GenericRepository, WorkingTree = GenericWorkingTree>>, Error>
pub fn initialize_on_transport( &self, transport: &Transport, ) -> Result<Box<dyn ControlDir<Branch = GenericBranch, Repository = GenericRepository, WorkingTree = GenericWorkingTree>>, Error>
Sourcepub fn initialize(
&self,
location: impl AsLocation,
) -> Result<Box<dyn ControlDir<Branch = GenericBranch, Repository = GenericRepository, WorkingTree = GenericWorkingTree>>, Error>
pub fn initialize( &self, location: impl AsLocation, ) -> Result<Box<dyn ControlDir<Branch = GenericBranch, Repository = GenericRepository, WorkingTree = GenericWorkingTree>>, Error>
Trait Implementations§
Source§impl AsFormat for &ControlDirFormat
impl AsFormat for &ControlDirFormat
Source§impl Clone for ControlDirFormat
impl Clone for ControlDirFormat
Source§impl Default for ControlDirFormat
impl Default for ControlDirFormat
Source§impl<'py> IntoPyObject<'py> for ControlDirFormat
impl<'py> IntoPyObject<'py> for ControlDirFormat
Source§type Output = Bound<'py, <ControlDirFormat as IntoPyObject<'py>>::Target>
type Output = Bound<'py, <ControlDirFormat as IntoPyObject<'py>>::Target>
The smart pointer type to use. Read more
Source§type Error = Infallible
type Error = Infallible
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for ControlDirFormat
impl !RefUnwindSafe for ControlDirFormat
impl Send for ControlDirFormat
impl Sync for ControlDirFormat
impl Unpin for ControlDirFormat
impl UnwindSafe for ControlDirFormat
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§impl<'py, T> IntoPyObjectExt<'py> for Twhere
T: IntoPyObject<'py>,
impl<'py, T> IntoPyObjectExt<'py> for Twhere
T: IntoPyObject<'py>,
Source§fn into_bound_py_any(self, py: Python<'py>) -> Result<Bound<'py, PyAny>, PyErr>
fn into_bound_py_any(self, py: Python<'py>) -> Result<Bound<'py, PyAny>, PyErr>
Converts
self into an owned Python object, dropping type information.