Struct seitan::IndexedProperty[][src]

pub struct IndexedProperty<'a, C, I> where
    C: Index<I>,
    I: Clone + 'a,
    <C as Index<I>>::Output: 'a, 
{ /* fields omitted */ }

Implementations

impl<'a, C, I> IndexedProperty<'a, C, I> where
    C: Index<I> + 'a,
    I: Clone + 'a,
    <C as Index<I>>::Output: 'a, 
[src]

pub fn new(collection: C, initial_index: I) -> IndexedProperty<'a, C, I>[src]

pub fn from_index_property(
    collection: C,
    index: Property<'a, I>
) -> IndexedProperty<'a, C, I>
[src]

pub fn get(&self) -> &<C as Index<I>>::Output[src]

pub fn current_index(&self) -> I[src]

pub fn set(&mut self, index: I)[src]

pub fn collection(&self) -> &C[src]

pub fn index_property(&self) -> &Property<'a, I>[src]

pub fn index_property_mut(&mut self) -> &mut Property<'a, I>[src]

impl<'a, C, I> IndexedProperty<'a, C, I> where
    C: Index<I> + 'a,
    I: Clone + 'a,
    <C as Index<I>>::Output: Clone + 'a, 
[src]

pub fn try_iter<'b>(self) -> TryIter<'b, <C as Index<I>>::Output>

Notable traits for TryIter<'a, T>

impl<'a, T> Iterator for TryIter<'a, T> type Item = T;
where
    'a: 'b, 
[src]

pub fn to_parameter<'b>(self) -> Parameter<'b, <C as Index<I>>::Output> where
    'a: 'b, 
[src]

pub fn into_property(self) -> Property<'a, <C as Index<I>>::Output>[src]

Trait Implementations

impl<'a, C, I> Clone for IndexedProperty<'a, C, I> where
    C: Index<I>,
    I: Clone + 'a,
    <C as Index<I>>::Output: 'a, 
[src]

impl<'a, C: Default, I: Default> Default for IndexedProperty<'a, C, I> where
    C: Index<I>,
    I: Clone + 'a,
    <C as Index<I>>::Output: 'a, 
[src]

Auto Trait Implementations

impl<'a, C, I> !RefUnwindSafe for IndexedProperty<'a, C, I>

impl<'a, C, I> !Send for IndexedProperty<'a, C, I>

impl<'a, C, I> !Sync for IndexedProperty<'a, C, I>

impl<'a, C, I> Unpin for IndexedProperty<'a, C, I>

impl<'a, C, I> !UnwindSafe for IndexedProperty<'a, C, I>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.