pub enum Type {
Primitive(PrimitiveType),
Reference(ReferenceType),
Void(Span),
}Expand description
A Java type.
Variants§
Primitive(PrimitiveType)
A primitive type: int, boolean, etc.
Reference(ReferenceType)
A reference type: class, interface, type variable, or array.
Void(Span)
The void type (only used in method return types).
Implementations§
Trait Implementations§
impl Eq for Type
Source§impl From<Type> for MethodReturnType
impl From<Type> for MethodReturnType
impl StructuralPartialEq for Type
Auto Trait Implementations§
impl Freeze for Type
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnsafeUnpin for Type
impl UnwindSafe for Type
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