pub struct Frame {
pub model: String,
pub fields: Vec<FieldInfo>,
pub ids: Vec<String>,
pub columns: Vec<(String, Vec<Json>)>,
pub groups: Vec<Group>,
}Expand description
Loaded records, by column.
Fields§
§model: String§fields: Vec<FieldInfo>§ids: Vec<String>§columns: Vec<(String, Vec<Json>)>§groups: Vec<Group>Implementations§
Source§impl Frame
impl Frame
pub fn from_json(j: &Json) -> Result<Frame>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn has(&self, name: &str) -> bool
Sourcepub fn column(&self, name: &str) -> Result<&[Json]>
pub fn column(&self, name: &str) -> Result<&[Json]>
The values of a field (Null where a record has none).
Sourcepub fn f64(&self, name: &str) -> Result<Vec<f64>>
pub fn f64(&self, name: &str) -> Result<Vec<f64>>
A field as numbers (NaN where missing or not a number; timestamps are epoch ms).
Sourcepub fn slice(&self, start: usize, len: usize) -> Frame
pub fn slice(&self, start: usize, len: usize) -> Frame
Rows start .. start + len as a frame of their own.
Trait Implementations§
impl StructuralPartialEq for Frame
Auto Trait Implementations§
impl Forget for Frame
impl Freeze for Frame
impl Move for Frame
impl RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnsafeUnpin for Frame
impl UnwindSafe for Frame
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