[−][src]Struct binjs_meta::spec::StringEnum
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
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,