[][src]Enum j4rs::Null

pub enum Null<'a> {
    String,
    Boolean,
    Byte,
    Character,
    Short,
    Integer,
    Long,
    Float,
    Double,
    List,
    Of(&'a str),
}

Represents Java's null. Use this to create null Objects. E.g.:

let null_integer = InvocationArg::from(Null::Integer); let null_object = InvocationArg::from(Null::Of("some.class.Name"));

Variants

String
Boolean
Byte
Character
Short
Integer
Long
Float
Double
List
Of(&'a str)

Trait Implementations

impl<'a> TryFrom<Null<'a>> for InvocationArg[src]

type Error = J4RsError

The type returned in the event of a conversion error.

Auto Trait Implementations

impl<'a> RefUnwindSafe for Null<'a>

impl<'a> Send for Null<'a>

impl<'a> Sync for Null<'a>

impl<'a> Unpin for Null<'a>

impl<'a> UnwindSafe for Null<'a>

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, 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.