Struct fitsio::columndescription::ColumnDescription
[−]
[src]
pub struct ColumnDescription { pub name: String, pub data_type: Option<ColumnDataDescription>, }
Description for new columns
Fields
name: String
Name of the column
data_type: Option<ColumnDataDescription>
Type of the data, see the cfitsio documentation
Methods
impl ColumnDescription
[src]
pub fn new<T: Into<String>>(name: T) -> Self
[src]
Create a new ColumnDescription
from a name
pub fn with_type(&mut self, typ: ColumnDataType) -> &mut ColumnDescription
[src]
Add a data type to the column description
pub fn that_repeats(&mut self, repeat: usize) -> &mut ColumnDescription
[src]
Make the column repeat
pub fn with_width(&mut self, width: usize) -> &mut ColumnDescription
[src]
Define the column width
pub fn create(&self) -> Result<ConcreteColumnDescription>
[src]
Render the ColumnDescription
into a
ConcreteColumnDescription
Trait Implementations
impl Debug for ColumnDescription
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for ColumnDescription
[src]
fn clone(&self) -> ColumnDescription
[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