pub struct ReadOptions { /* private fields */ }Expand description
Flags to alter the behavior of the reader
§Example
let opts = ReadOptions::new()
.import_fits_keywords(false)
.clamp_to_bounds(false);Implementations§
Source§impl ReadOptions
impl ReadOptions
Sourcepub fn new() -> Self
pub fn new() -> Self
Alias for Default::default()
Sourcepub fn import_fits_keywords(&mut self, import: bool) -> &mut Self
pub fn import_fits_keywords(&mut self, import: bool) -> &mut Self
Read FITSKeyword headers from the XML header
Sourcepub fn fits_keywords_as_properties(&mut self, convert: bool) -> &mut Self
pub fn fits_keywords_as_properties(&mut self, convert: bool) -> &mut Self
Import FITSKeyword headers as XISF <Property> tags with the prefix FITS:
Has no effect if Self::import_fits_keywords() is false
Not currently respected
Sourcepub fn clamp_to_bounds(&mut self, clamp: bool) -> &mut Self
pub fn clamp_to_bounds(&mut self, clamp: bool) -> &mut Self
Clamp all pixel samples to the range specified in the bounds attribute
For floating-point images: NaNs, infinities, and negative zeros are replaced with the lower bound
Not currently respected
Trait Implementations§
Source§impl Clone for ReadOptions
impl Clone for ReadOptions
Source§fn clone(&self) -> ReadOptions
fn clone(&self) -> ReadOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReadOptions
impl Debug for ReadOptions
Auto Trait Implementations§
impl Freeze for ReadOptions
impl RefUnwindSafe for ReadOptions
impl Send for ReadOptions
impl Sync for ReadOptions
impl Unpin for ReadOptions
impl UnwindSafe for ReadOptions
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