pub struct EnumBuilder { /* private fields */ }
Expand description
Builds spec for an enum node.
Implementations§
source§impl EnumBuilder
impl EnumBuilder
pub fn new(name: &str) -> Self
pub fn missing(self, name: &str) -> EnumBuilder
pub fn node(self, name: &str) -> EnumBuilder
pub fn node_with_explicit_kind(self, name: &str, kind: &str) -> EnumBuilder
pub fn build(self) -> Node
Auto Trait Implementations§
impl Freeze for EnumBuilder
impl RefUnwindSafe for EnumBuilder
impl Send for EnumBuilder
impl Sync for EnumBuilder
impl Unpin for EnumBuilder
impl UnwindSafe for EnumBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more