pub struct WitnessName(/* private fields */);Expand description
The name of a witness.
Implementations§
Source§impl WitnessName
impl WitnessName
Sourcepub fn from_str_unchecked(s: &str) -> Self
pub fn from_str_unchecked(s: &str) -> Self
Sourcepub fn shallow_clone(&self) -> Self
pub fn shallow_clone(&self) -> Self
Make a cheap copy of the name.
Trait Implementations§
Source§impl Clone for WitnessName
impl Clone for WitnessName
Source§fn clone(&self) -> WitnessName
fn clone(&self) -> WitnessName
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 Debug for WitnessName
impl Debug for WitnessName
Source§impl Display for WitnessName
impl Display for WitnessName
impl Eq for WitnessName
Source§impl Hash for WitnessName
impl Hash for WitnessName
Source§impl Ord for WitnessName
impl Ord for WitnessName
Source§fn cmp(&self, other: &WitnessName) -> Ordering
fn cmp(&self, other: &WitnessName) -> 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 PartialEq for WitnessName
impl PartialEq for WitnessName
Source§impl PartialOrd for WitnessName
impl PartialOrd for WitnessName
impl StructuralPartialEq for WitnessName
Source§impl<J> WitnessConstructible<WitnessName> for ConstructData<J>
impl<J> WitnessConstructible<WitnessName> for ConstructData<J>
fn witness(inference_context: &Context, _: WitnessName) -> Self
Auto Trait Implementations§
impl Freeze for WitnessName
impl RefUnwindSafe for WitnessName
impl Send for WitnessName
impl Sync for WitnessName
impl Unpin for WitnessName
impl UnsafeUnpin for WitnessName
impl UnwindSafe for WitnessName
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more