pub struct View {
pub all: Vec<Memory>,
pub seat: Option<String>,
pub since: Option<String>,
pub show_reviewed: bool,
pub cursor: usize,
pub marked: BTreeSet<String>,
pub status: String,
}Expand description
What the viewer shows: the pure state its frame is drawn from.
Fields§
§all: Vec<Memory>§seat: Option<String>§since: Option<String>§show_reviewed: bool§cursor: usize§marked: BTreeSet<String>§status: StringImplementations§
Source§impl View
impl View
pub fn new(all: Vec<Memory>) -> Self
pub fn current(&self) -> Option<&Memory>
pub fn clamp(&mut self)
pub fn down(&mut self)
pub fn up(&mut self)
Sourcepub fn cycle_seat(&mut self)
pub fn cycle_seat(&mut self)
Step the seat filter: all, then each seat in turn.
pub fn toggle_mark(&mut self)
Sourcepub fn set_verdict(&mut self, id: &str, verdict: &str)
pub fn set_verdict(&mut self, id: &str, verdict: &str)
Note a verdict on id in the view, as the file now says.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for View
impl RefUnwindSafe for View
impl Send for View
impl Sync for View
impl Unpin for View
impl UnsafeUnpin for View
impl UnwindSafe for View
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more