Struct structdump::StructBuilder
source · [−]pub struct StructBuilder<Type> { /* private fields */ }
Implementations
sourceimpl<Type> StructBuilder<Type>
impl<Type> StructBuilder<Type>
sourceimpl StructBuilder<Named>
impl StructBuilder<Named>
pub fn field(
self,
res: &mut CodegenResult,
name: Ident,
value: &impl Codegen
) -> Self
pub fn build(self, res: &mut CodegenResult) -> TokenStream
sourceimpl StructBuilder<Unnamed>
impl StructBuilder<Unnamed>
pub fn field(self, res: &mut CodegenResult, value: &impl Codegen) -> Self
pub fn build(self, res: &mut CodegenResult) -> TokenStream
sourceimpl StructBuilder<Unit>
impl StructBuilder<Unit>
pub fn build(self) -> TokenStream
Auto Trait Implementations
impl<Type> RefUnwindSafe for StructBuilder<Type> where
Type: RefUnwindSafe,
impl<Type> !Send for StructBuilder<Type>
impl<Type> !Sync for StructBuilder<Type>
impl<Type> Unpin for StructBuilder<Type> where
Type: Unpin,
impl<Type> UnwindSafe for StructBuilder<Type> where
Type: UnwindSafe,
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