[]Struct rendy::util::vulkan::VK_ENTRY

pub struct VK_ENTRY { /* fields omitted */ }

Methods from Deref<Target = Result<EntryCustom<Arc<DynamicLibrary>>, LoadingError>>

#[must_use] pub fn is_ok(&self) -> bool1.0.0[src]

Returns true if the result is Ok.

Examples

Basic usage:

let x: Result<i32, &str> = Ok(-3);
assert_eq!(x.is_ok(), true);

let x: Result<i32, &str> = Err("Some error message");
assert_eq!(x.is_ok(), false);

#[must_use] pub fn is_err(&self) -> bool1.0.0[src]

Returns true if the result is Err.

Examples

Basic usage:

let x: Result<i32, &str> = Ok(-3);
assert_eq!(x.is_err(), false);

let x: Result<i32, &str> = Err("Some error message");
assert_eq!(x.is_err(), true);

pub fn as_ref(&self) -> Result<&T, &E>1.0.0[src]

Converts from &Result<T, E> to Result<&T, &E>.

Produces a new Result, containing a reference into the original, leaving the original in place.

Examples

Basic usage:

let x: Result<u32, &str> = Ok(2);
assert_eq!(x.as_ref(), Ok(&2));

let x: Result<u32, &str> = Err("Error");
assert_eq!(x.as_ref(), Err(&"Error"));

pub fn iter(&self) -> Iter<T>1.0.0[src]

Returns an iterator over the possibly contained value.

The iterator yields one value if the result is [Result::Ok], otherwise none.

Examples

Basic usage:

let x: Result<u32, &str> = Ok(7);
assert_eq!(x.iter().next(), Some(&7));

let x: Result<u32, &str> = Err("nothing!");
assert_eq!(x.iter().next(), None);

pub fn deref_ok(&self) -> Result<&<T as Deref>::Target, &E>[src]

🔬 This is a nightly-only experimental API. (inner_deref)

newly added

Converts from &Result<T, E> to Result<&T::Target, &E>.

Leaves the original Result in-place, creating a new one with a reference to the original one, additionally coercing the Ok arm of the Result via Deref.

pub fn deref_err(&self) -> Result<&T, &<E as Deref>::Target>[src]

🔬 This is a nightly-only experimental API. (inner_deref)

newly added

Converts from &Result<T, E> to Result<&T, &E::Target>.

Leaves the original Result in-place, creating a new one with a reference to the original one, additionally coercing the Err arm of the Result via Deref.

pub fn deref(&self) -> Result<&<T as Deref>::Target, &<E as Deref>::Target>[src]

🔬 This is a nightly-only experimental API. (inner_deref)

newly added

Converts from &Result<T, E> to Result<&T::Target, &E::Target>.

Leaves the original Result in-place, creating a new one with a reference to the original one, additionally coercing both the Ok and Err arms of the Result via Deref.

Trait Implementations

impl Deref for VK_ENTRY

type Target = Result<EntryCustom<Arc<DynamicLibrary>>, LoadingError>

The resulting type after dereferencing.

impl LazyStatic for VK_ENTRY

Auto Trait Implementations

impl Unpin for VK_ENTRY

impl Sync for VK_ENTRY

impl Send for VK_ENTRY

impl UnwindSafe for VK_ENTRY

impl RefUnwindSafe for VK_ENTRY

Blanket Implementations

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.

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> Supports<T> for T[src]

impl<T> SetParameter for T[src]

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 
[src]

Sets value as a parameter of self.

impl<T> Erased for T[src]

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
    D: AdaptFrom<S, Swp, Dwp, T>,
    Dwp: WhitePoint,
    Swp: WhitePoint,
    T: Component + Float
[src]

fn adapt_into(self) -> D[src]

Convert the source color to the destination color using the bradford method by default Read more