pub struct NotValidatedGString<V: Validator, const MIN: usize, const MAX: usize, const ASCII_ONLY: bool>(/* private fields */);Expand description
GString from const generic constructor.
Const generic gstring! is compile-time check and return this temporary type before you validate it.
It must be validated before getting actual GString.
Implementations§
Trait Implementations§
Source§impl<V: Clone + Validator, const MIN: usize, const MAX: usize, const ASCII_ONLY: bool> Clone for NotValidatedGString<V, MIN, MAX, ASCII_ONLY>
impl<V: Clone + Validator, const MIN: usize, const MAX: usize, const ASCII_ONLY: bool> Clone for NotValidatedGString<V, MIN, MAX, ASCII_ONLY>
Source§fn clone(&self) -> NotValidatedGString<V, MIN, MAX, ASCII_ONLY>
fn clone(&self) -> NotValidatedGString<V, MIN, MAX, ASCII_ONLY>
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 moreSource§impl<V: Debug + Validator, const MIN: usize, const MAX: usize, const ASCII_ONLY: bool> Debug for NotValidatedGString<V, MIN, MAX, ASCII_ONLY>
impl<V: Debug + Validator, const MIN: usize, const MAX: usize, const ASCII_ONLY: bool> Debug for NotValidatedGString<V, MIN, MAX, ASCII_ONLY>
Source§impl<V: Ord + Validator, const MIN: usize, const MAX: usize, const ASCII_ONLY: bool> Ord for NotValidatedGString<V, MIN, MAX, ASCII_ONLY>
impl<V: Ord + Validator, const MIN: usize, const MAX: usize, const ASCII_ONLY: bool> Ord for NotValidatedGString<V, MIN, MAX, ASCII_ONLY>
Source§fn cmp(&self, other: &NotValidatedGString<V, MIN, MAX, ASCII_ONLY>) -> Ordering
fn cmp(&self, other: &NotValidatedGString<V, MIN, MAX, ASCII_ONLY>) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<V: PartialEq + Validator, const MIN: usize, const MAX: usize, const ASCII_ONLY: bool> PartialEq for NotValidatedGString<V, MIN, MAX, ASCII_ONLY>
impl<V: PartialEq + Validator, const MIN: usize, const MAX: usize, const ASCII_ONLY: bool> PartialEq for NotValidatedGString<V, MIN, MAX, ASCII_ONLY>
Source§fn eq(&self, other: &NotValidatedGString<V, MIN, MAX, ASCII_ONLY>) -> bool
fn eq(&self, other: &NotValidatedGString<V, MIN, MAX, ASCII_ONLY>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<V: PartialOrd + Validator, const MIN: usize, const MAX: usize, const ASCII_ONLY: bool> PartialOrd for NotValidatedGString<V, MIN, MAX, ASCII_ONLY>
impl<V: PartialOrd + Validator, const MIN: usize, const MAX: usize, const ASCII_ONLY: bool> PartialOrd for NotValidatedGString<V, MIN, MAX, ASCII_ONLY>
Source§fn partial_cmp(
&self,
other: &NotValidatedGString<V, MIN, MAX, ASCII_ONLY>,
) -> Option<Ordering>
fn partial_cmp( &self, other: &NotValidatedGString<V, MIN, MAX, ASCII_ONLY>, ) -> Option<Ordering>
impl<V: Copy + Validator, const MIN: usize, const MAX: usize, const ASCII_ONLY: bool> Copy for NotValidatedGString<V, MIN, MAX, ASCII_ONLY>
impl<V: Eq + Validator, const MIN: usize, const MAX: usize, const ASCII_ONLY: bool> Eq for NotValidatedGString<V, MIN, MAX, ASCII_ONLY>
impl<V: Validator, const MIN: usize, const MAX: usize, const ASCII_ONLY: bool> StructuralPartialEq for NotValidatedGString<V, MIN, MAX, ASCII_ONLY>
Auto Trait Implementations§
impl<V, const MIN: usize, const MAX: usize, const ASCII_ONLY: bool> Freeze for NotValidatedGString<V, MIN, MAX, ASCII_ONLY>
impl<V, const MIN: usize, const MAX: usize, const ASCII_ONLY: bool> RefUnwindSafe for NotValidatedGString<V, MIN, MAX, ASCII_ONLY>where
V: RefUnwindSafe,
impl<V, const MIN: usize, const MAX: usize, const ASCII_ONLY: bool> Send for NotValidatedGString<V, MIN, MAX, ASCII_ONLY>where
V: Send,
impl<V, const MIN: usize, const MAX: usize, const ASCII_ONLY: bool> Sync for NotValidatedGString<V, MIN, MAX, ASCII_ONLY>where
V: Sync,
impl<V, const MIN: usize, const MAX: usize, const ASCII_ONLY: bool> Unpin for NotValidatedGString<V, MIN, MAX, ASCII_ONLY>where
V: Unpin,
impl<V, const MIN: usize, const MAX: usize, const ASCII_ONLY: bool> UnsafeUnpin for NotValidatedGString<V, MIN, MAX, ASCII_ONLY>
impl<V, const MIN: usize, const MAX: usize, const ASCII_ONLY: bool> UnwindSafe for NotValidatedGString<V, MIN, MAX, ASCII_ONLY>where
V: UnwindSafe,
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