Struct lup::Secret [] [src]

pub struct Secret<E, T> {
    pub evidence: Option<E>,
    pub value: T,
}

Stores a secret.

A secret is a data structure that might have some evidence. The evidence tells why the value has the value it has.

For example, the maximum value of a list could be stored as a secret which has as evidence the index where the maximum value can be found.

The meaning of secrets is interpreted depending on context.

Fields

The evidence for the value.

The value.

Methods

impl<E, T> Secret<E, T>
[src]

[src]

Checks if secret value is less than value.

This is a method because Rust does not allow overriding the output type for comparison operators.

[src]

Checks if secret value is less or equal than value.

This is a method because Rust does not allow overriding the output type for comparison operators.

[src]

Checks if secret value is greater than value.

This is a method because Rust does not allow overriding the output type for comparison operators.

[src]

Checks if secret value is greater or equal than value.

This is a method because Rust does not allow overriding the output type for comparison operators.

[src]

Checks if secret value is equal to value.

This is a method because Rust does not allow overriding the output type for comparison operators.

[src]

Checks if secret value is not equal to value.

This is a method because Rust does not allow overriding the output type for comparison operators.

Trait Implementations

impl Lup<usize, Secret<usize, bool>> for Any<(usize, usize)>
[src]

The resulting type.

[src]

Initialize loop.

[src]

Iterate loop.

[src]

Unwrap the resulting value.

impl Lup<usize, Secret<(usize, usize), bool>> for Any<(usize, usize, usize)>
[src]

The resulting type.

[src]

Initialize loop.

[src]

Iterate loop.

[src]

Unwrap the resulting value.

impl Lup<usize, Secret<usize, bool>> for All<(usize, usize)>
[src]

The resulting type.

[src]

Initialize loop.

[src]

Iterate loop.

[src]

Unwrap the resulting value.

impl Lup<usize, Secret<(usize, usize), bool>> for All<(usize, usize, usize)>
[src]

The resulting type.

[src]

Initialize loop.

[src]

Iterate loop.

[src]

Unwrap the resulting value.

impl Lup<usize, Secret<usize, f32>> for Max<(usize, usize), f32>
[src]

The resulting type.

[src]

Initialize loop.

[src]

Iterate loop.

[src]

Unwrap the resulting value.

impl Lup<usize, Secret<(usize, usize), f32>> for Max<(usize, usize, usize), f32>
[src]

The resulting type.

[src]

Initialize loop.

[src]

Iterate loop.

[src]

Unwrap the resulting value.

impl Lup<usize, Secret<usize, f64>> for Max<(usize, usize), f64>
[src]

The resulting type.

[src]

Initialize loop.

[src]

Iterate loop.

[src]

Unwrap the resulting value.

impl Lup<usize, Secret<(usize, usize), f64>> for Max<(usize, usize, usize), f64>
[src]

The resulting type.

[src]

Initialize loop.

[src]

Iterate loop.

[src]

Unwrap the resulting value.

impl Lup<usize, Secret<usize, f32>> for Min<(usize, usize), f32>
[src]

The resulting type.

[src]

Initialize loop.

[src]

Iterate loop.

[src]

Unwrap the resulting value.

impl Lup<usize, Secret<(usize, usize), f32>> for Min<(usize, usize, usize), f32>
[src]

The resulting type.

[src]

Initialize loop.

[src]

Iterate loop.

[src]

Unwrap the resulting value.

impl Lup<usize, Secret<usize, f64>> for Min<(usize, usize), f64>
[src]

The resulting type.

[src]

Initialize loop.

[src]

Iterate loop.

[src]

Unwrap the resulting value.

impl Lup<usize, Secret<(usize, usize), f64>> for Min<(usize, usize, usize), f64>
[src]

The resulting type.

[src]

Initialize loop.

[src]

Iterate loop.

[src]

Unwrap the resulting value.

impl<E: Debug, T: Debug> Debug for Secret<E, T>
[src]

[src]

Formats the value using the given formatter. Read more

impl<E: Clone, T: Clone> Clone for Secret<E, T>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<E, T> Neg for Secret<E, T> where
    T: Neg
[src]

The resulting type after applying the - operator.

[src]

Performs the unary - operation.

impl<E> Not for Secret<E, bool>
[src]

The resulting type after applying the ! operator.

[src]

Performs the unary ! operation.

Auto Trait Implementations

impl<E, T> Send for Secret<E, T> where
    E: Send,
    T: Send

impl<E, T> Sync for Secret<E, T> where
    E: Sync,
    T: Sync