[][src]Struct binjs_meta::spec::StringEnum

pub struct StringEnum { /* fields omitted */ }

An enumeration of strings.

A valid value is any of these strings.

Methods

impl StringEnum[src]

pub fn name(&self) -> &NodeName[src]

pub fn strings(&self) -> &[String][src]

pub fn with_string(&mut self, string: &str) -> &mut Self[src]

Add a string to the enum. Idempotent.

pub fn with_strings(&mut self, strings: &[&str]) -> &mut Self[src]

Add several enums to the list. Idempotent.

Trait Implementations

impl Debug for StringEnum[src]

Auto Trait Implementations

impl !RefUnwindSafe for StringEnum

impl !Send for StringEnum

impl !Sync for StringEnum

impl Unpin for StringEnum

impl UnwindSafe for StringEnum

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, 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.