Struct pdl_compiler::ast::Field
source · pub struct Field<A: Annotation> {
pub loc: SourceRange,
pub annot: A::FieldAnnotation,
pub desc: FieldDesc,
pub cond: Option<Constraint>,
}
Fields§
§loc: SourceRange
§annot: A::FieldAnnotation
§desc: FieldDesc
§cond: Option<Constraint>
Implementations§
Trait Implementations§
source§impl<A: Clone + Annotation> Clone for Field<A>where
A::FieldAnnotation: Clone,
impl<A: Clone + Annotation> Clone for Field<A>where
A::FieldAnnotation: Clone,
source§impl<A: Debug + Annotation> Debug for Field<A>where
A::FieldAnnotation: Debug,
impl<A: Debug + Annotation> Debug for Field<A>where
A::FieldAnnotation: Debug,
source§impl<A: Annotation> PartialEq for Field<A>
impl<A: Annotation> PartialEq for Field<A>
source§impl<A: Annotation> Serialize for Field<A>
impl<A: Annotation> Serialize for Field<A>
impl<A: Annotation> Eq for Field<A>
Auto Trait Implementations§
impl<A> RefUnwindSafe for Field<A>
impl<A> Send for Field<A>
impl<A> Sync for Field<A>
impl<A> Unpin for Field<A>
impl<A> UnwindSafe for Field<A>
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