Struct range_check::Bounds [] [src]

pub struct Bounds<T> {
    pub lower: Option<T>,
    pub upper: Option<T>,
}

The two bounds destructured from a Range value.

Fields

The lower bound. Range and RangeFrom have one of these.

The upper bound. Range and RangeTo have one of these.

Trait Implementations

impl<T: PartialEq> PartialEq for Bounds<T>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<T: Debug> Debug for Bounds<T>
[src]

Formats the value using the given formatter.

impl<T: Clone> Clone for Bounds<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Debug> Display for Bounds<T>
[src]

Formats the value using the given formatter. Read more