Struct vstd::prelude::FnSpec

pub struct FnSpec<Args, Output> { /* private fields */ }

Trait Implementations§

§

impl<Args, Output> Fn<Args> for FnSpec<Args, Output>
where Args: Tuple,

§

extern "rust-call" fn call( &self, _: Args ) -> <FnSpec<Args, Output> as FnOnce<Args>>::Output

🔬This is a nightly-only experimental API. (fn_traits)
Performs the call operation.
§

impl<Args, Output> FnMut<Args> for FnSpec<Args, Output>
where Args: Tuple,

§

extern "rust-call" fn call_mut( &mut self, _: Args ) -> <FnSpec<Args, Output> as FnOnce<Args>>::Output

🔬This is a nightly-only experimental API. (fn_traits)
Performs the call operation.
§

impl<Args, Output> FnOnce<Args> for FnSpec<Args, Output>
where Args: Tuple,

§

type Output = Output

The returned type after the call operator is used.
§

extern "rust-call" fn call_once( self, _: Args ) -> <FnSpec<Args, Output> as FnOnce<Args>>::Output

🔬This is a nightly-only experimental API. (fn_traits)
Performs the call operation.

Auto Trait Implementations§

§

impl<Args, Output> RefUnwindSafe for FnSpec<Args, Output>
where Args: RefUnwindSafe, Output: RefUnwindSafe,

§

impl<Args, Output> Send for FnSpec<Args, Output>
where Args: Send, Output: Send,

§

impl<Args, Output> Sync for FnSpec<Args, Output>
where Args: Sync, Output: Sync,

§

impl<Args, Output> Unpin for FnSpec<Args, Output>
where Args: Unpin, Output: Unpin,

§

impl<Args, Output> UnwindSafe for FnSpec<Args, Output>
where Args: UnwindSafe, Output: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<Args, Output, F> FnWithRequiresEnsures<Args, Output> for F
where Args: Tuple, F: FnOnce<Args, Output = Output>,

source§

open spec fn requires(self, args: Args) -> bool

{ call_requires(self, args) }
source§

open spec fn ensures(self, args: Args, output: Output) -> bool

{ call_ensures(self, args, output) }
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<'a, F> Pattern<'a> for F
where F: FnMut(char) -> bool,

§

type Searcher = CharPredicateSearcher<'a, F>

🔬This is a nightly-only experimental API. (pattern)
Associated searcher for this pattern
source§

fn into_searcher(self, haystack: &'a str) -> CharPredicateSearcher<'a, F>

🔬This is a nightly-only experimental API. (pattern)
Constructs the associated searcher from self and the haystack to search in.
source§

fn is_contained_in(self, haystack: &'a str) -> bool

🔬This is a nightly-only experimental API. (pattern)
Checks whether the pattern matches anywhere in the haystack
source§

fn is_prefix_of(self, haystack: &'a str) -> bool

🔬This is a nightly-only experimental API. (pattern)
Checks whether the pattern matches at the front of the haystack
source§

fn strip_prefix_of(self, haystack: &'a str) -> Option<&'a str>

🔬This is a nightly-only experimental API. (pattern)
Removes the pattern from the front of haystack, if it matches.
source§

fn is_suffix_of(self, haystack: &'a str) -> bool

🔬This is a nightly-only experimental API. (pattern)
Checks whether the pattern matches at the back of the haystack
source§

fn strip_suffix_of(self, haystack: &'a str) -> Option<&'a str>

🔬This is a nightly-only experimental API. (pattern)
Removes the pattern from the back of haystack, if it matches.
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.