Struct structdump::CodegenResult
source · [−]pub struct CodegenResult { /* private fields */ }
Implementations
sourceimpl CodegenResult
impl CodegenResult
pub fn add_code(
&mut self,
code: TokenStream,
ty: Option<TokenStream>,
unique: bool
) -> TokenStream
pub fn add_value(&mut self, s: impl Codegen, unique: bool) -> TokenStream
pub fn codegen(&mut self, s: &impl Codegen, unique: bool) -> TokenStream
Trait Implementations
sourceimpl Default for CodegenResult
impl Default for CodegenResult
sourcefn default() -> CodegenResult
fn default() -> CodegenResult
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for CodegenResult
impl !Send for CodegenResult
impl !Sync for CodegenResult
impl Unpin for CodegenResult
impl UnwindSafe for CodegenResult
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