pub struct SmartLog {
pub items: Vec<ItemType>,
/* private fields */
}Fields§
§items: Vec<ItemType>Implementations§
Source§impl SmartLog
impl SmartLog
pub fn new(raw_lines: &[String]) -> Self
pub fn get_selected_commit_hash(&self) -> Option<&str>
pub fn move_up(&mut self)
pub fn move_down(&mut self)
pub fn to_string_vec(&self) -> Vec<String>
pub fn select_line_index(&mut self, item_idx: usize)
pub fn deselect_line_idx(&mut self, item_idx: usize)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SmartLog
impl RefUnwindSafe for SmartLog
impl Send for SmartLog
impl Sync for SmartLog
impl Unpin for SmartLog
impl UnwindSafe for SmartLog
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