pub struct ParserConfig {
pub docstring_before_properties: bool,
pub docstring_before_arguments: bool,
pub docstring_before_enumerations: bool,
pub parse_live_scripts: bool,
}Expand description
Which comment block belongs to a declaration, and what the path holds.
By default (false) a comment block after a property, argument or enumeration
documents the declaration before it, as maxx does. With true the block before
the declaration documents it.
Fields§
§docstring_before_properties: boolComment blocks before a property document that property (default: after).
docstring_before_arguments: boolComment blocks before an argument document that argument (default: after).
docstring_before_enumerations: boolComment blocks before an enumeration member document that member (default: after).
parse_live_scripts: boolWhether .mlx files on the path are live scripts (default: no, as maxx).
Plain-text live code is never picked up from its .m file: it is read with
crate::parse_live_text_file when the caller knows it is one.
Trait Implementations§
Source§impl Clone for ParserConfig
impl Clone for ParserConfig
impl Copy for ParserConfig
Source§impl Debug for ParserConfig
impl Debug for ParserConfig
Source§impl Default for ParserConfig
impl Default for ParserConfig
Source§impl<'de> Deserialize<'de> for ParserConfigwhere
ParserConfig: Default,
impl<'de> Deserialize<'de> for ParserConfigwhere
ParserConfig: Default,
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
impl Eq for ParserConfig
Source§impl PartialEq for ParserConfig
impl PartialEq for ParserConfig
Source§impl Serialize for ParserConfig
impl Serialize for ParserConfig
impl StructuralPartialEq for ParserConfig
Auto Trait Implementations§
impl Forget for ParserConfig
impl Freeze for ParserConfig
impl Move for ParserConfig
impl RefUnwindSafe for ParserConfig
impl Send for ParserConfig
impl Sync for ParserConfig
impl Unpin for ParserConfig
impl UnsafeUnpin for ParserConfig
impl UnwindSafe for ParserConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.