pub enum Type {
Ref(RefType),
Scalar(ScalarType),
Repeat(Arc<Type>),
}Variants§
Implementations§
Source§impl Type
impl Type
pub fn is_scalar(&self) -> bool
Sourcepub fn to_non_repeating(&self) -> NonRepeatingType
pub fn to_non_repeating(&self) -> NonRepeatingType
Convert a potentially repeating type to a non-repeating one.
Types like T... become an array T[].
Sourcepub fn descriptor(&self, ctx: &GenericsScope<'_>) -> String
pub fn descriptor(&self, ctx: &GenericsScope<'_>) -> String
Returns the JVM descriptor for this type, suitable for embedding a method descriptor.
§Parameters
ctxis the generics scope where the type appears.
Trait Implementations§
Source§impl Ord for Type
impl Ord for Type
Source§impl PartialOrd for Type
impl PartialOrd for Type
Source§impl Substitute for Type
impl Substitute for Type
fn substitute(&self, subst: &Substitution<'_>) -> Self
impl Eq for Type
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 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