Struct pdl_runtime::Private
source · pub struct Private<T>(/* private fields */);
Expand description
Private prevents users from creating arbitrary scalar values in situations where the value needs to be validated. Users can freely deref the value, but only the backend may create it.
Trait Implementations§
source§impl<T: Ord> Ord for Private<T>
impl<T: Ord> Ord for Private<T>
1.21.0 · 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<T: PartialEq> PartialEq for Private<T>
impl<T: PartialEq> PartialEq for Private<T>
source§impl<T: PartialOrd> PartialOrd for Private<T>
impl<T: PartialOrd> PartialOrd for Private<T>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<T: Copy> Copy for Private<T>
impl<T: Eq> Eq for Private<T>
impl<T> StructuralEq for Private<T>
impl<T> StructuralPartialEq for Private<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for Private<T>where T: RefUnwindSafe,
impl<T> Send for Private<T>where T: Send,
impl<T> Sync for Private<T>where T: Sync,
impl<T> Unpin for Private<T>where T: Unpin,
impl<T> UnwindSafe for Private<T>where T: 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