Struct fitsio::columndescription::ColumnDataDescription
[−]
[src]
pub struct ColumnDataDescription { pub repeat: usize, pub width: usize, pub typ: ColumnDataType, }
Description of the column data
Fields
repeat: usize
Does the column contain multiple values?
width: usize
How wide is the column?
typ: ColumnDataType
What data type does the column store?
Methods
impl ColumnDataDescription
[src]
pub fn new(typ: ColumnDataType, repeat: usize, width: usize) -> Self
[src]
Create a new column data description
pub fn scalar(typ: ColumnDataType) -> Self
[src]
Shortcut for creating a scalar column
pub fn vector(typ: ColumnDataType, repeat: usize) -> Self
[src]
Shortcut for creating a vector column
Trait Implementations
impl Debug for ColumnDataDescription
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for ColumnDataDescription
[src]
fn clone(&self) -> ColumnDataDescription
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for ColumnDataDescription
[src]
fn eq(&self, __arg_0: &ColumnDataDescription) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ColumnDataDescription) -> bool
[src]
This method tests for !=
.
impl Eq for ColumnDataDescription
[src]
impl From<ColumnDataDescription> for String
[src]
fn from(orig: ColumnDataDescription) -> String
[src]
Performs the conversion.