[][src]Struct uclicious_libucl_sys::ucl_parser_flags

#[repr(transparent)]
pub struct ucl_parser_flags(pub u32);

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.

Methods

impl ucl_parser_flags[src]

pub const UCL_PARSER_DEFAULT: ucl_parser_flags[src]

< No special flags

impl ucl_parser_flags[src]

pub const UCL_PARSER_KEY_LOWERCASE: ucl_parser_flags[src]

< Convert all keys to lower case

impl ucl_parser_flags[src]

pub const UCL_PARSER_ZEROCOPY: ucl_parser_flags[src]

< Parse input in zero-copy mode if possible

impl ucl_parser_flags[src]

pub const UCL_PARSER_NO_TIME: ucl_parser_flags[src]

< Do not parse time and treat time values as strings

impl ucl_parser_flags[src]

impl ucl_parser_flags[src]

pub const UCL_PARSER_SAVE_COMMENTS: ucl_parser_flags[src]

Create explicit arrays instead of implicit ones

impl ucl_parser_flags[src]

pub const UCL_PARSER_DISABLE_MACRO: ucl_parser_flags[src]

Save comments in the parser context

impl ucl_parser_flags[src]

pub const UCL_PARSER_NO_FILEVARS: ucl_parser_flags[src]

Treat macros as comments

Trait Implementations

impl BitAnd<ucl_parser_flags> for ucl_parser_flags[src]

type Output = Self

The resulting type after applying the & operator.

impl BitAndAssign<ucl_parser_flags> for ucl_parser_flags[src]

impl BitOr<ucl_parser_flags> for ucl_parser_flags[src]

type Output = Self

The resulting type after applying the | operator.

impl BitOrAssign<ucl_parser_flags> for ucl_parser_flags[src]

impl Clone for ucl_parser_flags[src]

impl Copy for ucl_parser_flags[src]

impl Debug for ucl_parser_flags[src]

impl Eq for ucl_parser_flags[src]

impl Hash for ucl_parser_flags[src]

impl PartialEq<ucl_parser_flags> for ucl_parser_flags[src]

impl StructuralEq for ucl_parser_flags[src]

impl StructuralPartialEq for ucl_parser_flags[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.