Skip to main content

ForScope

Struct ForScope 

Source
pub struct ForScope;
Expand description

Marker for scope arguments.

Trait Implementations§

Source§

impl<F, R, I, T> DefaultFn<ForScope, I, T> for F
where F: Fn(&mut Scope<I>) -> R + Send + 'static, R: IntoResult<Option<T>>, I: Display,

Source§

fn execute(&self, scope: &mut Scope<I>) -> Result<Option<T>, Error>

Executes the default function. Read more
Source§

impl<F, R, I, T> FilterFn<ForScope, I, T> for F
where F: Fn(&mut Scope<I>) -> R + Send + 'static, R: IntoResult<bool>, I: Display,

Source§

fn execute(&self, scope: &mut Scope<I>, _: &T) -> Result<bool, Error>

Executes the filter function. Read more
Source§

impl<F, R, I, T, U> FilterMapFn<ForScope, I, T, U> for F
where F: Fn(&mut Scope<I>) -> R + Send + 'static, R: IntoResult<Option<U>>, I: Display,

Source§

fn execute(&self, scope: &mut Scope<I>, _: T) -> Result<Option<U>, Error>

Executes the filter map function. Read more
Source§

impl<F, R, J, I, T, U> FlatMapFn<ForScope, J, I, T, U> for F
where F: Fn(&mut Scope<I>) -> R + Send + 'static, R: IntoResult<J>, J: IntoIterator<Item = (Key<I>, U)>, I: Display,

Source§

type Iter = J

Iterator type returned by this function.
Source§

fn execute(&self, scope: &mut Scope<I>, _: T) -> Result<J, Error>

Executes the flat map function. Read more
Source§

impl<F, R, I, T, U> GetFn<ForScope, I, T, U> for F
where F: Fn(&mut Scope<I>) -> R + Send + 'static, R: IntoResult<U>, I: Display,

Source§

fn execute(&self, scope: &mut Scope<I>, _: &T) -> Result<U, Error>

Executes the get function. Read more
Source§

impl<F, R, I, T> InspectFn<ForScope, I, T> for F
where F: Fn(&mut Scope<I>) -> R + Send + 'static, R: IntoResult, I: Display,

Source§

fn execute(&self, scope: &mut Scope<I>, _: &T) -> Result<(), Error>

Executes the inspect function. Read more
Source§

impl<F, R, I, T, U> MapFn<ForScope, I, T, U> for F
where F: Fn(&mut Scope<I>) -> R + Send + 'static, R: IntoResult<U>, I: Display,

Source§

fn execute(&self, scope: &mut Scope<I>, _: T) -> Result<U, Error>

Executes the map function. Read more

Auto Trait Implementations§

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> Arguments for T
where T: Send + Sync + 'static,

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

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

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

Source§

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

Source§

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.