Enum conrod::MaybeParent [] [src]

pub enum MaybeParent {
    None,
    Some(Index),
    Unspecified,
}

The builder argument for the Widget's parent.

Variants

None

The user specified the widget should not have any parents, so the Root will be used.

Some(Index)

The user gave a specific parent widget.

Unspecified

No parent widget was specified, so we will assume they want the last parent.

Trait Implementations

impl Decodable for MaybeParent
[src]

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<MaybeParent, __D::Error>

impl Encodable for MaybeParent
[src]

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>

impl PartialEq for MaybeParent
[src]

fn eq(&self, __arg_0: &MaybeParent) -> bool

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

fn ne(&self, __arg_0: &MaybeParent) -> bool

This method tests for !=.

impl Debug for MaybeParent
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for MaybeParent
[src]

fn clone(&self) -> MaybeParent

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Copy for MaybeParent
[src]