Struct maskerad_object_pool::PoolObject [] [src]

pub struct PoolObject<T: Default> { /* fields omitted */ }

A thin wrapper around an object, adding the usage state in an object-agnostic way.

The wrapped object must be bound to the Default trait.

Methods

impl<T: Default> PoolObject<T>
[src]

[src]

Reinitialize the object to a default (Default trait), non used, state.

[src]

Return the usage state of the object.

[src]

Set the usage state of the object.

Trait Implementations

impl<T: Default> Deref for PoolObject<T>
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.

impl<T: Default> DerefMut for PoolObject<T>
[src]

[src]

Mutably dereferences the value.

impl<T: Default + Debug> Debug for PoolObject<T>
[src]

[src]

Formats the value using the given formatter.

impl<T: Default> Default for PoolObject<T>
[src]

[src]

Returns the "default value" for a type. Read more

impl<T: Default + Ord> Ord for PoolObject<T>
[src]

[src]

This method returns an Ordering between self and other. Read more

1.22.0
[src]

Compares and returns the maximum of two values. Read more

1.22.0
[src]

Compares and returns the minimum of two values. Read more

impl<T: Default + PartialOrd> PartialOrd for PoolObject<T>
[src]

[src]

This method returns an ordering between self and other values if one exists. Read more

1.0.0
[src]

This method tests less than (for self and other) and is used by the < operator. Read more

1.0.0
[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

1.0.0
[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

1.0.0
[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl<T: Default + PartialEq> PartialEq for PoolObject<T>
[src]

[src]

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

1.0.0
[src]

This method tests for !=.

impl<T: Default + Eq> Eq for PoolObject<T>
[src]