Enum rustdoc_json_types::Type[−][src]

pub enum Type {
Show variants ResolvedPath { name: String, id: Id, args: Option<Box<GenericArgs>>, param_names: Vec<GenericBound>, }, Generic(String), Primitive(String), FunctionPointer(Box<FunctionPointer>), Tuple(Vec<Type>), Slice(Box<Type>), Array { type_: Box<Type>, len: String, }, ImplTrait(Vec<GenericBound>), Never, Infer, RawPointer { mutable: bool, type_: Box<Type>, }, BorrowedRef { lifetime: Option<String>, mutable: bool, type_: Box<Type>, }, QualifiedPath { name: String, self_type: Box<Type>, trait_: Box<Type>, },
}

Variants

ResolvedPath

Structs, enums, and traits

Fields of ResolvedPath

name: Stringid: Idargs: Option<Box<GenericArgs>>param_names: Vec<GenericBound>
Generic(String)

Parameterized types

Primitive(String)

Fixed-size numeric types (plus int/usize/float), char, arrays, slices, and tuples

FunctionPointer(Box<FunctionPointer>)

extern "ABI" fn

Tuple(Vec<Type>)

(String, u32, Box<usize>)

Slice(Box<Type>)

[u32]

Array

[u32; 15]

Fields of Array

type_: Box<Type>len: String
ImplTrait(Vec<GenericBound>)

impl TraitA + TraitB + ...

Never

!

Infer

_

RawPointer

*mut u32, *u8, etc.

Fields of RawPointer

mutable: booltype_: Box<Type>
BorrowedRef

&'a mut String, &str, etc.

Fields of BorrowedRef

lifetime: Option<String>mutable: booltype_: Box<Type>
QualifiedPath

<Type as Trait>::Name or associated types like T::Item where T: Iterator

Fields of QualifiedPath

name: Stringself_type: Box<Type>trait_: Box<Type>

Trait Implementations

impl Clone for Type[src]

impl Debug for Type[src]

impl<'de> Deserialize<'de> for Type[src]

impl PartialEq<Type> for Type[src]

impl Serialize for Type[src]

impl StructuralPartialEq for Type[src]

Auto Trait Implementations

impl RefUnwindSafe for Type

impl Send for Type

impl Sync for Type

impl Unpin for Type

impl UnwindSafe for Type

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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, 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.