pub struct ContentDef {
pub required: bool,
pub separated: bool,
}Expand description
A paren operator’s content: whether it may be empty, and whether it is a list of terms separated by commas.
Fields§
§required: boolThe content may not be empty: () is refused, while a call that
admits none stays f().
separated: boolThe content is a list of terms separated by commas, as a call’s
arguments are, and each is a term of the operator (f(a, b) is
[f, a, b] under a call), so an infix operator on , does not
apply directly inside it.
Trait Implementations§
Source§impl Clone for ContentDef
impl Clone for ContentDef
impl Copy for ContentDef
Source§impl Debug for ContentDef
impl Debug for ContentDef
Source§impl Default for ContentDef
impl Default for ContentDef
impl Eq for ContentDef
Source§impl PartialEq for ContentDef
impl PartialEq for ContentDef
impl StructuralPartialEq for ContentDef
Auto Trait Implementations§
impl Forget for ContentDef
impl Freeze for ContentDef
impl Move for ContentDef
impl RefUnwindSafe for ContentDef
impl Send for ContentDef
impl Sync for ContentDef
impl Unpin for ContentDef
impl UnsafeUnpin for ContentDef
impl UnwindSafe for ContentDef
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,
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.