[][src]Enum asn1rs_model::model::rust::RustType

pub enum RustType {
    Bool,
    I8(Range<i8>),
    U8(Range<u8>),
    I16(Range<i16>),
    U16(Range<u16>),
    I32(Range<i32>),
    U32(Range<u32>),
    I64(Range<i64>),
    U64(Option<Range<u64>>),
    String,
    VecU8,
    Vec(Box<RustType>),
    Option(Box<RustType>),
    Complex(String),
}

Integers are ordered where Ixx < Uxx so that when comparing two instances RustType and a > b, then the integer type of a can use ::from(..) to cast from b

Variants

Bool
I8(Range<i8>)
U8(Range<u8>)
I16(Range<i16>)
U16(Range<u16>)
I32(Range<i32>)
U32(Range<u32>)
I64(Range<i64>)
String
VecU8
Option(Box<RustType>)
Complex(String)

Indicates a complex, custom type that is not one of rusts known types. This can be thought of as a "ReferenceType"; declaring usage, but not being declared here

Implementations

impl RustType[src]

pub fn as_inner_type(&self) -> &RustType[src]

pub fn into_inner_type(self) -> RustType[src]

pub fn to_inner(&self) -> Option<String>[src]

pub fn to_inner_type_string(&self) -> String[src]

pub fn no_option(self) -> Self[src]

pub fn as_no_option(&self) -> &Self[src]

pub fn is_vec(&self) -> bool[src]

pub fn is_option(&self) -> bool[src]

pub fn is_primitive(&self) -> bool[src]

pub fn integer_range_str(&self) -> Option<Range<String>>[src]

pub fn into_asn(self) -> AsnType[src]

pub fn similar(&self, other: &Self) -> bool[src]

Trait Implementations

impl Clone for RustType[src]

impl Debug for RustType[src]

impl PartialEq<RustType> for RustType[src]

impl PartialOrd<RustType> for RustType[src]

impl StructuralPartialEq for RustType[src]

impl ToProtobufType for RustType[src]

impl ToSql for RustType[src]

impl ToString for RustType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.