#[repr(transparent)]pub struct ucl_parser_flags(pub u32);Expand description
These flags defines parser behaviour. If you specify #UCL_PARSER_ZEROCOPY you must ensure that the input memory is not freed if an object is in use. Moreover, if you want to use zero-terminated keys and string values then you should not use zero-copy mode, as in this case UCL still has to perform copying implicitly.
Tuple Fields§
§0: u32Implementations§
Source§impl ucl_parser_flags
impl ucl_parser_flags
Sourcepub const UCL_PARSER_DEFAULT: ucl_parser_flags
pub const UCL_PARSER_DEFAULT: ucl_parser_flags
< No special flags
Source§impl ucl_parser_flags
impl ucl_parser_flags
Sourcepub const UCL_PARSER_KEY_LOWERCASE: ucl_parser_flags
pub const UCL_PARSER_KEY_LOWERCASE: ucl_parser_flags
< Convert all keys to lower case
Source§impl ucl_parser_flags
impl ucl_parser_flags
Sourcepub const UCL_PARSER_ZEROCOPY: ucl_parser_flags
pub const UCL_PARSER_ZEROCOPY: ucl_parser_flags
< Parse input in zero-copy mode if possible
Source§impl ucl_parser_flags
impl ucl_parser_flags
Sourcepub const UCL_PARSER_NO_TIME: ucl_parser_flags
pub const UCL_PARSER_NO_TIME: ucl_parser_flags
< Do not parse time and treat time values as strings
Source§impl ucl_parser_flags
impl ucl_parser_flags
Sourcepub const UCL_PARSER_SAVE_COMMENTS: ucl_parser_flags
pub const UCL_PARSER_SAVE_COMMENTS: ucl_parser_flags
Create explicit arrays instead of implicit ones
Source§impl ucl_parser_flags
impl ucl_parser_flags
Sourcepub const UCL_PARSER_DISABLE_MACRO: ucl_parser_flags
pub const UCL_PARSER_DISABLE_MACRO: ucl_parser_flags
Save comments in the parser context
Source§impl ucl_parser_flags
impl ucl_parser_flags
Sourcepub const UCL_PARSER_NO_FILEVARS: ucl_parser_flags
pub const UCL_PARSER_NO_FILEVARS: ucl_parser_flags
Treat macros as comments
Trait Implementations§
Source§impl BitAnd for ucl_parser_flags
impl BitAnd for ucl_parser_flags
Source§impl BitAndAssign for ucl_parser_flags
impl BitAndAssign for ucl_parser_flags
Source§fn bitand_assign(&mut self, rhs: ucl_parser_flags)
fn bitand_assign(&mut self, rhs: ucl_parser_flags)
Performs the
&= operation. Read moreSource§impl BitOr for ucl_parser_flags
impl BitOr for ucl_parser_flags
Source§impl BitOrAssign for ucl_parser_flags
impl BitOrAssign for ucl_parser_flags
Source§fn bitor_assign(&mut self, rhs: ucl_parser_flags)
fn bitor_assign(&mut self, rhs: ucl_parser_flags)
Performs the
|= operation. Read moreSource§impl Clone for ucl_parser_flags
impl Clone for ucl_parser_flags
Source§fn clone(&self) -> ucl_parser_flags
fn clone(&self) -> ucl_parser_flags
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 ucl_parser_flags
impl Debug for ucl_parser_flags
Source§impl Hash for ucl_parser_flags
impl Hash for ucl_parser_flags
Source§impl PartialEq for ucl_parser_flags
impl PartialEq for ucl_parser_flags
impl Copy for ucl_parser_flags
impl Eq for ucl_parser_flags
impl StructuralPartialEq for ucl_parser_flags
Auto Trait Implementations§
impl Freeze for ucl_parser_flags
impl RefUnwindSafe for ucl_parser_flags
impl Send for ucl_parser_flags
impl Sync for ucl_parser_flags
impl Unpin for ucl_parser_flags
impl UnwindSafe for ucl_parser_flags
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