pub struct Line { /* private fields */ }
Expand description
Represents a line in the rebase file.
Implementations
sourceimpl Line
impl Line
sourcepub fn set_action(&mut self, action: Action)
pub fn set_action(&mut self, action: Action)
Set the action of the line.
sourcepub fn edit_content(&mut self, content: &str)
pub fn edit_content(&mut self, content: &str)
Edit the content of the line, if it is editable.
sourcepub const fn get_action(&self) -> &Action
pub const fn get_action(&self) -> &Action
Get the action of the line.
sourcepub fn get_content(&self) -> &str
pub fn get_content(&self) -> &str
Get the content of the line.
sourcepub fn has_reference(&self) -> bool
pub fn has_reference(&self) -> bool
Does this line contain a commit reference.
sourcepub const fn is_editable(&self) -> bool
pub const fn is_editable(&self) -> bool
Can this line be edited.
Trait Implementations
impl StructuralPartialEq for Line
Auto Trait Implementations
impl RefUnwindSafe for Line
impl Send for Line
impl Sync for Line
impl Unpin for Line
impl UnwindSafe for Line
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more