pub struct ConstructorSpec {
pub modifiers: Modifiers,
pub annotations: Vec<AnnotationSpec>,
pub arguments: Vec<ArgumentSpec>,
pub throws: Vec<ClassType>,
pub elements: Elements,
}Fields§
§modifiers: Modifiers§annotations: Vec<AnnotationSpec>§arguments: Vec<ArgumentSpec>§throws: Vec<ClassType>§elements: ElementsImplementations§
Source§impl ConstructorSpec
impl ConstructorSpec
pub fn new(modifiers: Modifiers) -> ConstructorSpec
pub fn push_annotation<A>(&mut self, annotation: A)where
A: Into<AnnotationSpec>,
pub fn push_argument<A>(&mut self, argument: A)where
A: Into<ArgumentSpec>,
pub fn throws<T>(&mut self, throws: T)
pub fn push<E>(&mut self, element: E)
pub fn as_element(self, enclosing: &str) -> Element
Trait Implementations§
Source§impl Clone for ConstructorSpec
impl Clone for ConstructorSpec
Source§fn clone(&self) -> ConstructorSpec
fn clone(&self) -> ConstructorSpec
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 Debug for ConstructorSpec
impl Debug for ConstructorSpec
Source§impl<'a, T> From<&'a T> for ConstructorSpec
impl<'a, T> From<&'a T> for ConstructorSpec
Source§fn from(value: &'a T) -> ConstructorSpec
fn from(value: &'a T) -> ConstructorSpec
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ConstructorSpec
impl RefUnwindSafe for ConstructorSpec
impl Send for ConstructorSpec
impl Sync for ConstructorSpec
impl Unpin for ConstructorSpec
impl UnwindSafe for ConstructorSpec
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