[][src]Struct glsp::OrNil

pub struct OrNil<T>(pub Option<T>);

A wrapper type for an RFn argument which allows it to be #n.

For example, this function could be called as either (example 10) or (example #n):

fn example(OrNil(i): OrNil<i32>) {
	if let Some(i) = i {
		println!("{}", i);
	}
}

Trait Implementations

impl<'a, T> MakeArg<'a> for OrNil<T> where
    T: MakeArg<'a>, 
[src]

Auto Trait Implementations

impl<T> GSend for OrNil<T> where
    T: GSend

impl<T> GStore for OrNil<T> where
    T: GStore

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

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

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

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

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

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> Erased for T

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

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

impl<'a, T> MakeArg<'a> for T where
    T: FromVal + MakeTemp<Temp = Slot>, 
[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.