[][src]Struct proffer::generics_gen::Generic

pub struct Generic { /* fields omitted */ }

Represent a single trait bound

Methods

impl Generic[src]

pub fn new<S: ToString>(id: S) -> Self[src]

Create a new Generic

pub fn add_trait_bounds<S: ToString>(&mut self, traits: Vec<S>) -> &mut Self[src]

Set the trait bounds of this generic

Trait Implementations

impl Clone for Generic[src]

impl Default for Generic[src]

impl Serialize for Generic[src]

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

Auto Trait Implementations

impl Send for Generic

impl Sync for Generic

impl Unpin for Generic

impl UnwindSafe for Generic

impl RefUnwindSafe for Generic

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]