pub struct AnnotationSpec {
pub ty: Type,
pub arguments: Vec<Statement>,
}
Fields§
§ty: Type
§arguments: Vec<Statement>
Implementations§
Source§impl AnnotationSpec
impl AnnotationSpec
pub fn new<I>(ty: I) -> AnnotationSpec
pub fn push_argument<S>(&mut self, statement: S)
Trait Implementations§
Source§impl Clone for AnnotationSpec
impl Clone for AnnotationSpec
Source§fn clone(&self) -> AnnotationSpec
fn clone(&self) -> AnnotationSpec
Returns a copy 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 Debug for AnnotationSpec
impl Debug for AnnotationSpec
Source§impl<'a, T> From<&'a T> for AnnotationSpec
impl<'a, T> From<&'a T> for AnnotationSpec
Source§fn from(value: &'a T) -> AnnotationSpec
fn from(value: &'a T) -> AnnotationSpec
Converts to this type from the input type.
Source§impl From<AnnotationSpec> for Element
impl From<AnnotationSpec> for Element
Source§fn from(value: AnnotationSpec) -> Element
fn from(value: AnnotationSpec) -> Element
Converts to this type from the input type.
Source§impl From<AnnotationSpec> for Variable
impl From<AnnotationSpec> for Variable
Source§fn from(value: AnnotationSpec) -> Self
fn from(value: AnnotationSpec) -> Self
Converts to this type from the input type.
Source§impl From<ClassType> for AnnotationSpec
impl From<ClassType> for AnnotationSpec
Source§fn from(value: ClassType) -> AnnotationSpec
fn from(value: ClassType) -> AnnotationSpec
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AnnotationSpec
impl RefUnwindSafe for AnnotationSpec
impl Send for AnnotationSpec
impl Sync for AnnotationSpec
impl Unpin for AnnotationSpec
impl UnwindSafe for AnnotationSpec
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