pub struct StructMethodBuilder<'a, F>where
F: StructFieldType,{ /* private fields */ }
Implementations§
Source§impl<'a, F> StructMethodBuilder<'a, F>where
F: StructFieldType,
impl<'a, F> StructMethodBuilder<'a, F>where
F: StructFieldType,
pub fn begin_initializer<D: Into<Doc<Unvalidated>>, S: IntoName>( self, name: S, initializer_type: InitializerType, doc: D, ) -> BindResult<StructInitializerBuilder<'a, F>>
pub fn add_full_initializer<S: IntoName>(self, name: S) -> BindResult<Self>
pub fn build(self) -> BindResult<Handle<Struct<F, Unvalidated>>>
Auto Trait Implementations§
impl<'a, F> Freeze for StructMethodBuilder<'a, F>
impl<'a, F> RefUnwindSafe for StructMethodBuilder<'a, F>where
F: RefUnwindSafe,
impl<'a, F> !Send for StructMethodBuilder<'a, F>
impl<'a, F> !Sync for StructMethodBuilder<'a, F>
impl<'a, F> Unpin for StructMethodBuilder<'a, F>where
F: Unpin,
impl<'a, F> !UnwindSafe for StructMethodBuilder<'a, F>
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