pub struct Options { /* private fields */ }Expand description
Options for parsing
Implementations§
Source§impl Options
impl Options
Sourcepub fn from_preset(preset: Preset) -> Self
pub fn from_preset(preset: Preset) -> Self
Create a new set of options from a preset
Sourcepub const fn array_allow_trailing_comma(&self) -> bool
pub const fn array_allow_trailing_comma(&self) -> bool
Can arrays have trailing commas?
Default (BI): false
Default (HEMTT): true
When false, the following is invalid:
my_array[] = {
1,
2, // <- trailing comma on last element
};Trait Implementations§
Source§impl<'de> Deserialize<'de> for Options
impl<'de> Deserialize<'de> for Options
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnsafeUnpin for Options
impl UnwindSafe for Options
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