pub struct ClassType {
pub package: String,
pub name: String,
pub arguments: Vec<Type>,
}
Expand description
Complete types, including generic arguments.
Fields§
§package: String
§name: String
§arguments: Vec<Type>
Implementations§
Source§impl ClassType
impl ClassType
pub fn new(package: &str, name: &str, arguments: Vec<Type>) -> ClassType
pub fn with_arguments<A>(&self, arguments: Vec<A>) -> ClassType
pub fn extend(&self, part: &str) -> ClassType
pub fn to_raw(&self) -> ClassType
pub fn format( &self, out: &mut dyn ElementFormat, level: usize, extra: &mut Extra, ) -> Result<()>
Trait Implementations§
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.
Source§impl Imports for ClassType
impl Imports for ClassType
fn imports<I>(&self, receiver: &mut I)where
I: ImportReceiver,
Source§impl Ord for ClassType
impl Ord for ClassType
Source§impl PartialOrd for ClassType
impl PartialOrd for ClassType
impl Eq for ClassType
impl StructuralPartialEq for ClassType
Auto Trait Implementations§
impl Freeze for ClassType
impl RefUnwindSafe for ClassType
impl Send for ClassType
impl Sync for ClassType
impl Unpin for ClassType
impl UnwindSafe for ClassType
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