[−][src]Struct lang_extension::convert::DefaultValueFilter
Methods
impl<V: ?Sized + ValueConstraint> DefaultValueFilter<V>
[src]
pub fn new(filter: Box<dyn Fn(Box<V>) -> Option<Box<V>>>) -> Self
[src]
pub fn wrap(filter: Arc<Box<dyn Fn(Box<V>) -> Option<Box<V>>>>) -> Self
[src]
Trait Implementations
impl<V: ?Sized + ValueConstraint> RawValueFilter for DefaultValueFilter<V>
[src]
fn filter_raw(&self, value: Box<dyn Value>) -> Option<Box<dyn Value>>
[src]
fn as_trait_ref(&self) -> &dyn RawValueFilter
[src]
fn as_trait_mut(&mut self) -> &mut dyn RawValueFilter
[src]
fn clone_boxed(&self) -> Box<dyn RawValueFilter>
[src]
fn to_boxed(self) -> Box<dyn RawValueFilter>
[src]
impl<V: ?Sized + ValueConstraint> ValueFilter<V> for DefaultValueFilter<V>
[src]
fn filter(&self, value: Box<V>) -> Option<Box<V>>
[src]
fn clone_boxed(&self) -> Box<dyn ValueFilter<V>>
[src]
fn to_boxed(self) -> Box<dyn ValueFilter<V>>
[src]
impl<V: ?Sized + ValueConstraint> Send for DefaultValueFilter<V>
[src]
impl<V: ?Sized + ValueConstraint> Sync for DefaultValueFilter<V>
[src]
impl<V: Clone + ?Sized + ValueConstraint> Clone for DefaultValueFilter<V>
[src]
fn clone(&self) -> DefaultValueFilter<V>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<V: ?Sized + ValueConstraint> Eq for DefaultValueFilter<V>
[src]
impl<V: ?Sized + ValueConstraint> PartialEq<DefaultValueFilter<V>> for DefaultValueFilter<V>
[src]
impl<V: ?Sized + ValueConstraint> Debug for DefaultValueFilter<V>
[src]
Auto Trait Implementations
impl<V> Unpin for DefaultValueFilter<V>
impl<V> !UnwindSafe for DefaultValueFilter<V>
impl<V> !RefUnwindSafe for DefaultValueFilter<V>
Blanket Implementations
impl<T> AsAny for T where
T: 'static,
[src]
T: 'static,
fn as_any_ref(&Self) -> &(dyn Any + 'static)
[src]
fn as_any_mut(&mut Self) -> &mut (dyn Any + 'static)
[src]
impl<T> AnyExtension for T where
T: ?Sized,
[src]
T: ?Sized,
fn type_name(&Self) -> &'static str
[src]
fn memory_address(&Self) -> usize
[src]
fn reference_equals(&Self, &(dyn Any + 'static)) -> bool
[src]
impl<T> ToDebugString for T where
T: Debug + ?Sized,
[src]
T: Debug + ?Sized,
fn to_debug_string(&Self) -> String
[src]
impl<T> ToInstanceString for T where
T: ?Sized,
[src]
T: ?Sized,
fn to_instance_string(&Self) -> String
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,