pub struct UnionMeta<'a> { /* private fields */ }
Expand description
Union type metadata
Implementations
sourceimpl<'a> UnionMeta<'a>
impl<'a> UnionMeta<'a>
sourcepub fn new(name: Cow<'a, str>, of_types: &[Type<'_>]) -> UnionMeta<'a>
pub fn new(name: Cow<'a, str>, of_types: &[Type<'_>]) -> UnionMeta<'a>
Build a new union type with the specified name and possible types
sourcepub fn description(self, description: &str) -> UnionMeta<'a>
pub fn description(self, description: &str) -> UnionMeta<'a>
Set the description of the type
If a description was provided prior to calling this method, it will be overwritten.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for UnionMeta<'a>
impl<'a> Send for UnionMeta<'a>
impl<'a> Sync for UnionMeta<'a>
impl<'a> Unpin for UnionMeta<'a>
impl<'a> UnwindSafe for UnionMeta<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more