[][src]Struct abi_stable::type_layout::StartLenConverter

pub struct StartLenConverter<T>(pub T);

Used to convert the stuff passed to the tl_genparams macro to a StartLen.

Methods

impl StartLenConverter<()>[src]

pub const fn to_start_len(self) -> StartLen[src]

Constructs an empty StartLen.

impl StartLenConverter<usize>[src]

pub const fn to_start_len(self) -> StartLen[src]

Constructs a StartLen from 0 to self.0 exclusive.

impl StartLenConverter<Range<usize>>[src]

pub const fn to_start_len(self) -> StartLen[src]

Constructs a StartLen from the exclusive range.

impl StartLenConverter<RangeInclusive<usize>>[src]

pub const fn to_start_len(self) -> StartLen[src]

Constructs a StartLen from the inclusive range.

impl StartLenConverter<StartLen>[src]

pub const fn to_start_len(self) -> StartLen[src]

Unwraps this back into a StartLen.

Auto Trait Implementations

impl<T> Send for StartLenConverter<T> where
    T: Send

impl<T> Sync for StartLenConverter<T> where
    T: Sync

impl<T> Unpin for StartLenConverter<T> where
    T: Unpin

impl<T> UnwindSafe for StartLenConverter<T> where
    T: UnwindSafe

impl<T> RefUnwindSafe for StartLenConverter<T> where
    T: RefUnwindSafe

Blanket Implementations

impl<This> TransmuteElement for This where
    This: ?Sized
[src]

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

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

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> TypeIdentity for T where
    T: ?Sized
[src]

type Type = T

The same type as Self. Read more

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

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

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

The error type returned when the conversion fails.