pub struct Reads<M> { /* private fields */ }Expand description
The fields of M a Column or a Filter
reads, by the root field each path starts at: what
field_access hides it by.
use tablo_core::{ComputedColumn, Reads, lens};
ComputedColumn::new("Pay", |e: &Employee| (e.salary + e.bonus).to_string())
.reading(Reads::of(lens!(Employee.salary)).and(lens!(Employee.bonus)));Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<M> Freeze for Reads<M>
impl<M> RefUnwindSafe for Reads<M>
impl<M> Send for Reads<M>
impl<M> Sync for Reads<M>
impl<M> Unpin for Reads<M>
impl<M> UnsafeUnpin for Reads<M>
impl<M> UnwindSafe for Reads<M>
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