Struct runestick::format::Flags[][src]

#[repr(transparent)]pub struct Flags(_);

Format specification flags.

Implementations

impl Flags[src]

pub fn is_empty(self) -> bool[src]

Check if the set of flags is empty.

pub fn into_u32(self) -> u32[src]

Get the flags as a number. This representation is not guaranteed to be stable.

pub fn set(&mut self, flag: Flag)[src]

Set the given flag.

pub fn test(&self, flag: Flag) -> bool[src]

Test the given flag.

Trait Implementations

impl Clone for Flags[src]

impl Copy for Flags[src]

impl Debug for Flags[src]

impl Default for Flags[src]

impl<'de> Deserialize<'de> for Flags[src]

impl From<u32> for Flags[src]

impl Serialize for Flags[src]

Auto Trait Implementations

impl RefUnwindSafe for Flags

impl Send for Flags

impl Sync for Flags

impl Unpin for Flags

impl UnwindSafe for Flags

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

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.