Enum reproto_core::RpType
[−]
[src]
pub enum RpType {
Double,
Float,
Signed {
size: usize,
},
Unsigned {
size: usize,
},
Boolean,
String,
DateTime,
Bytes,
Any,
Name {
name: RpName,
},
Array {
inner: Box<RpType>,
},
Map {
key: Box<RpType>,
value: Box<RpType>,
},
}Variants
DoubleFloatSignedFields of Signed
size: usize |
UnsignedFields of Unsigned
size: usize |
BooleanStringDateTimeISO-8601 datetime
BytesAnyNameFields of Name
name: RpName |
ArrayFields of Array
inner: Box<RpType> |
MapFields of Map
key: Box<RpType> | |
value: Box<RpType> |
Methods
impl RpType[src]
fn as_enum_type(&self) -> Option<RpEnumType>[src]
Convert to an enum variant type.
fn localize(self) -> RpType[src]
Localize type.
Strips version of any type which is not imported.
fn without_version(self) -> RpType[src]
Strip version component for any type.
Trait Implementations
impl Debug for RpType[src]
impl Clone for RpType[src]
fn clone(&self) -> RpType[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl PartialEq for RpType[src]
fn eq(&self, __arg_0: &RpType) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &RpType) -> bool[src]
This method tests for !=.