pub enum RpType<F>where
F: Flavor + 'static,{
Double,
Float,
Signed {
size: usize,
},
Unsigned {
size: usize,
},
Boolean,
String,
DateTime,
Bytes,
Any,
Name {
name: Loc<RpName<F>>,
},
Array {
inner: Box<RpType<F>>,
},
Map {
key: Box<RpType<F>>,
value: Box<RpType<F>>,
},
}
Variants§
Implementations§
Source§impl<F> RpType<F>where
F: Flavor + 'static,
impl<F> RpType<F>where
F: Flavor + 'static,
Sourcepub fn as_enum_type(&self) -> Option<RpEnumType>
pub fn as_enum_type(&self) -> Option<RpEnumType>
Convert to an enum variant type.
Source§impl RpType<CoreFlavor>
impl RpType<CoreFlavor>
Sourcepub fn without_version(self) -> Self
pub fn without_version(self) -> Self
Strip version component for any type.
Trait Implementations§
impl<F> Eq for RpType<F>
impl<F> StructuralPartialEq for RpType<F>where
F: Flavor + 'static,
Auto Trait Implementations§
impl<F> Freeze for RpType<F>
impl<F> RefUnwindSafe for RpType<F>
impl<F> Send for RpType<F>
impl<F> Sync for RpType<F>
impl<F> Unpin for RpType<F>
impl<F> UnwindSafe for RpType<F>
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