#[repr(C)]pub struct ShapeField<'input> {
pub key: Option<ShapeFieldKey<'input>>,
pub value: Box<Type<'input>>,
pub comma: Option<Span>,
}Fields§
§key: Option<ShapeFieldKey<'input>>§value: Box<Type<'input>>§comma: Option<Span>Implementations§
Source§impl ShapeField<'_>
impl ShapeField<'_>
pub fn is_optional(&self) -> bool
Trait Implementations§
Source§impl<'input> Clone for ShapeField<'input>
impl<'input> Clone for ShapeField<'input>
Source§fn clone(&self) -> ShapeField<'input>
fn clone(&self) -> ShapeField<'input>
Returns a duplicate 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<'input> Debug for ShapeField<'input>
impl<'input> Debug for ShapeField<'input>
Source§impl Display for ShapeField<'_>
impl Display for ShapeField<'_>
Source§impl HasSpan for ShapeField<'_>
impl HasSpan for ShapeField<'_>
Source§impl<'input> Hash for ShapeField<'input>
impl<'input> Hash for ShapeField<'input>
Source§impl<'input> Ord for ShapeField<'input>
impl<'input> Ord for ShapeField<'input>
Source§fn cmp(&self, other: &ShapeField<'input>) -> Ordering
fn cmp(&self, other: &ShapeField<'input>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'input> PartialEq for ShapeField<'input>
impl<'input> PartialEq for ShapeField<'input>
Source§impl<'input> PartialOrd for ShapeField<'input>
impl<'input> PartialOrd for ShapeField<'input>
Source§impl<'input> Serialize for ShapeField<'input>
impl<'input> Serialize for ShapeField<'input>
impl<'input> Eq for ShapeField<'input>
impl<'input> StructuralPartialEq for ShapeField<'input>
Auto Trait Implementations§
impl<'input> Freeze for ShapeField<'input>
impl<'input> RefUnwindSafe for ShapeField<'input>
impl<'input> Send for ShapeField<'input>
impl<'input> Sync for ShapeField<'input>
impl<'input> Unpin for ShapeField<'input>
impl<'input> UnwindSafe for ShapeField<'input>
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