pub struct NoValidation;Expand description
Validator that performs no validation.
This is the default validator used by GType.
use g_type::GType;
let value: GType<_> = GType::try_new(123).unwrap();Trait Implementations§
Source§impl Clone for NoValidation
impl Clone for NoValidation
Source§fn clone(&self) -> NoValidation
fn clone(&self) -> NoValidation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for NoValidation
Source§impl Debug for NoValidation
impl Debug for NoValidation
Source§impl<T: PartialOrd + 'static> Validator<T> for NoValidation
impl<T: PartialOrd + 'static> Validator<T> for NoValidation
Source§type Error = Infallible
type Error = Infallible
Validation error type.
Auto Trait Implementations§
impl Freeze for NoValidation
impl RefUnwindSafe for NoValidation
impl Send for NoValidation
impl Sync for NoValidation
impl Unpin for NoValidation
impl UnsafeUnpin for NoValidation
impl UnwindSafe for NoValidation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more