pub struct Submodule { /* private fields */ }
Expand description
Represents a Git submodule entry with its attributes.
Implementations§
Source§impl Submodule
impl Submodule
pub fn new(name: &str, entries: Vec<(String, String)>) -> Self
Sourcepub fn name(&self) -> &str
pub fn name(&self) -> &str
Returns the name of the submodule. The name is the only required attribute of the submodule.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Submodule
impl RefUnwindSafe for Submodule
impl Send for Submodule
impl Sync for Submodule
impl Unpin for Submodule
impl UnwindSafe for Submodule
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