Struct ion_c_sys::_ion_writer_options [−][src]
Fields
output_as_binary: BOOL
escape_all_non_ascii: BOOL
On text output, this escapes non-ascii characters. So the output file is pure ascii, only valid for text output
pretty_print: BOOL
Turns on pretty printing, only valid for text output
indent_with_tabs: BOOL
Uses tabs for indenting instead of spaces
indent_size: SIZE
Sets the default indent amount (default is 2)
small_containers_in_line: BOOL
Puts “small” containers on a single line instead of putting all values on separate lines
supress_system_values: BOOL
Turns off the otherwise automatic insertion of system values (like symbol tables)
flush_every_value: BOOL
Turns on very active flushing of the internal streams (text only)
max_container_depth: SIZE
The max container depth defaults to 10
max_annotation_count: SIZE
The max number of annotations on 1 value, defaults to 10
temp_buffer_size: SIZE
The temp buffer is used to hold temp strings (etc) default is 1024
allocation_page_size: SIZE
memory is allocated in pages owned by the primary entities it’s default size is 4096
pcatalog: *mut ION_CATALOG
Handle to catalog of shared symbol tables for the writer to use
encoding_psymbol_table: ION_COLLECTION
An ordered list of ION_SYMBOL_TABLE_IMPORT that the writer will import into each new local
symbol table context. Should be initialized by calling ion_writer_options_initialize_shared_imports
,
populated by calling ion_writer_options_add_shared_imports
and/or
ion_writer_options_add_shared_imports_symbol_tables
, and freed by calling
ion_writer_options_close_shared_imports
.
NOTE: the system symbol table is always used as the first import; it need not be provided here.
decimal_context: *mut decContext
Handle to the decNumber context for the writer to use. This allows configuration of the maximum number of decimal digits, decimal exponent range, etc. See decContextDefault in decContext.h for simple initialization.
If NULL, the writer will initialize its decimal context by calling decContextDefault with the DEC_INIT_DECQUAD option, which results in a maximum of 34 decimal digits and an exponent range of [-6143, 6144].
Note that up to 34 digits of precision will always be supported, even if configured to be less than 34.
Trait Implementations
impl Clone for _ion_writer_options
[src]
fn clone(&self) -> _ion_writer_options
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for _ion_writer_options
[src]
impl Debug for _ion_writer_options
[src]
impl Default for _ion_writer_options
[src]
Auto Trait Implementations
impl RefUnwindSafe for _ion_writer_options
impl !Send for _ion_writer_options
impl !Sync for _ion_writer_options
impl Unpin for _ion_writer_options
impl UnwindSafe for _ion_writer_options
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,