Enum reproto_core::RpType
[−]
[src]
pub enum RpType<F: 'static> where
F: Flavor, { 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
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: Loc<RpName<F>> |
Array
Fields of Array
inner: Box<RpType<F>> |
Map
Fields of Map
key: Box<RpType<F>> | |
value: Box<RpType<F>> |
Methods
impl<F: 'static> RpType<F> where
F: Flavor,
[src]
F: Flavor,
pub fn as_enum_type(&self) -> Option<RpEnumType>
[src]
Convert to an enum variant type.
impl RpType<CoreFlavor>
[src]
pub fn localize(self) -> Self
[src]
Localize type.
Strips version of any type which is not imported.
pub fn without_version(self) -> Self
[src]
Strip version component for any type.
Trait Implementations
impl<F: Debug + 'static> Debug for RpType<F> where
F: Flavor,
[src]
F: Flavor,
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<F: Clone + 'static> Clone for RpType<F> where
F: Flavor,
[src]
F: Flavor,
fn clone(&self) -> RpType<F>
[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<F: PartialEq + 'static> PartialEq for RpType<F> where
F: Flavor,
[src]
F: Flavor,
fn eq(&self, __arg_0: &RpType<F>) -> 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<F>) -> bool
[src]
This method tests for !=
.
impl<F: Eq + 'static> Eq for RpType<F> where
F: Flavor,
[src]
F: Flavor,
impl<F: 'static> Display for RpType<F> where
F: Flavor,
[src]
F: Flavor,