Struct broot::syntactic::SyntacticView [−][src]
Fields
path: PathBuf
pattern: InputPattern
Implementations
impl SyntacticView
[src]
pub fn new(
path: &Path,
pattern: InputPattern,
dam: &mut Dam,
con: &AppContext
) -> Result<Option<Self>, ProgramError>
[src]
path: &Path,
pattern: InputPattern,
dam: &mut Dam,
con: &AppContext
) -> Result<Option<Self>, ProgramError>
return a prepared text view with syntax coloring if possible. May return Ok(None) only when a pattern is given and there was an event before the end of filtering.
pub fn line_counts(&self) -> (usize, usize)
[src]
(count of lines which can be seen when scrolling, total count including filtered ones)
pub fn get_selected_line(&self) -> Option<String>
[src]
pub fn get_selected_line_number(&self) -> Option<LineNumber>
[src]
pub fn unselect(&mut self)
[src]
pub fn try_select_y(&mut self, y: u16) -> bool
[src]
pub fn select_first(&mut self)
[src]
pub fn select_last(&mut self)
[src]
pub fn try_select_line_number(&mut self, number: LineNumber) -> bool
[src]
pub fn move_selection(&mut self, dy: i32, cycle: bool)
[src]
pub fn try_scroll(&mut self, cmd: ScrollCommand) -> bool
[src]
pub fn display(
&mut self,
w: &mut W,
_screen: Screen,
panel_skin: &PanelSkin,
area: &Area,
con: &AppContext
) -> Result<(), ProgramError>
[src]
&mut self,
w: &mut W,
_screen: Screen,
panel_skin: &PanelSkin,
area: &Area,
con: &AppContext
) -> Result<(), ProgramError>
pub fn display_info(
&mut self,
w: &mut W,
_screen: Screen,
panel_skin: &PanelSkin,
area: &Area
) -> Result<(), ProgramError>
[src]
&mut self,
w: &mut W,
_screen: Screen,
panel_skin: &PanelSkin,
area: &Area
) -> Result<(), ProgramError>
Auto Trait Implementations
impl RefUnwindSafe for SyntacticView
impl Send for SyntacticView
impl Sync for SyntacticView
impl Unpin for SyntacticView
impl UnwindSafe for SyntacticView
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,