Struct parsec::Proof [−][src]
pub struct Proof<P: PublicId> { /* fields omitted */ }
Methods
impl<P: PublicId> Proof<P>
[src]
impl<P: PublicId> Proof<P>
pub fn public_id(&self) -> &P
[src]
pub fn public_id(&self) -> &P
Returns the associated public identity.
pub fn signature(&self) -> &P::Signature
[src]
pub fn signature(&self) -> &P::Signature
Returns the associated signature.
pub fn is_valid(&self, data: &[u8]) -> bool
[src]
pub fn is_valid(&self, data: &[u8]) -> bool
Verifies this Proof
against data
. Returns true
if valid.
Trait Implementations
impl<P: Clone + PublicId> Clone for Proof<P> where
P::Signature: Clone,
[src]
impl<P: Clone + PublicId> Clone for Proof<P> where
P::Signature: Clone,
fn clone(&self) -> Proof<P>
[src]
fn clone(&self) -> Proof<P>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl<P: PartialEq + PublicId> PartialEq for Proof<P> where
P::Signature: PartialEq,
[src]
impl<P: PartialEq + PublicId> PartialEq for Proof<P> where
P::Signature: PartialEq,
fn eq(&self, other: &Proof<P>) -> bool
[src]
fn eq(&self, other: &Proof<P>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Proof<P>) -> bool
[src]
fn ne(&self, other: &Proof<P>) -> bool
This method tests for !=
.
impl<P: Eq + PublicId> Eq for Proof<P> where
P::Signature: Eq,
[src]
impl<P: Eq + PublicId> Eq for Proof<P> where
P::Signature: Eq,
impl<P: PartialOrd + PublicId> PartialOrd for Proof<P> where
P::Signature: PartialOrd,
[src]
impl<P: PartialOrd + PublicId> PartialOrd for Proof<P> where
P::Signature: PartialOrd,
fn partial_cmp(&self, other: &Proof<P>) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &Proof<P>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Proof<P>) -> bool
[src]
fn lt(&self, other: &Proof<P>) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Proof<P>) -> bool
[src]
fn le(&self, other: &Proof<P>) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Proof<P>) -> bool
[src]
fn gt(&self, other: &Proof<P>) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Proof<P>) -> bool
[src]
fn ge(&self, other: &Proof<P>) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl<P: Ord + PublicId> Ord for Proof<P> where
P::Signature: Ord,
[src]
impl<P: Ord + PublicId> Ord for Proof<P> where
P::Signature: Ord,
fn cmp(&self, other: &Proof<P>) -> Ordering
[src]
fn cmp(&self, other: &Proof<P>) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl<P: Hash + PublicId> Hash for Proof<P> where
P::Signature: Hash,
[src]
impl<P: Hash + PublicId> Hash for Proof<P> where
P::Signature: Hash,
fn hash<__HP: Hasher>(&self, state: &mut __HP)
[src]
fn hash<__HP: Hasher>(&self, state: &mut __HP)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<P: Debug + PublicId> Debug for Proof<P> where
P::Signature: Debug,
[src]
impl<P: Debug + PublicId> Debug for Proof<P> where
P::Signature: Debug,