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
Double
Float
Signed
Fields of Signed
size: usize |
Unsigned
Fields of Unsigned
size: usize |
Boolean
String
DateTime
ISO-8601 datetime
Bytes
Any
Name
Fields of Name
name: RpName |
Array
Fields of Array
inner: Box<RpType> |
Map
Fields of Map
key: Box<RpType> | |
value: Box<RpType> |
Methods
impl RpType
[src]
pub fn as_enum_type(&self) -> Option<RpEnumType>
[src]
Convert to an enum variant type.
pub fn localize(self) -> RpType
[src]
Localize type.
Strips version of any type which is not imported.
pub fn without_version(self) -> RpType
[src]
Strip version component for any type.
Trait Implementations
impl Debug for RpType
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
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 !=
.