Struct uclicious_libucl_sys::ucl_parser_flags
source · #[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: u32
Implementations§
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
pub const UCL_PARSER_NO_IMPLICIT_ARRAYS: ucl_parser_flags = _
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<ucl_parser_flags> for ucl_parser_flags
impl BitAnd<ucl_parser_flags> for ucl_parser_flags
source§impl BitAndAssign<ucl_parser_flags> for ucl_parser_flags
impl BitAndAssign<ucl_parser_flags> 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<ucl_parser_flags> for ucl_parser_flags
impl BitOr<ucl_parser_flags> for ucl_parser_flags
source§impl BitOrAssign<ucl_parser_flags> for ucl_parser_flags
impl BitOrAssign<ucl_parser_flags> 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 copy 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<ucl_parser_flags> for ucl_parser_flags
impl PartialEq<ucl_parser_flags> for ucl_parser_flags
source§fn eq(&self, other: &ucl_parser_flags) -> bool
fn eq(&self, other: &ucl_parser_flags) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ucl_parser_flags
impl Eq for ucl_parser_flags
impl StructuralEq for ucl_parser_flags
impl StructuralPartialEq for ucl_parser_flags
Auto Trait Implementations§
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