pub struct FrameworkExporter<'a> {
pub types: &'a TypeCollection,
/* private fields */
}Expand description
Reference to Typescript language exporter for framework
Fields§
§types: &'a TypeCollectionCollected types currently being exported.
Implementations§
Source§impl FrameworkExporter<'_>
impl FrameworkExporter<'_>
Sourcepub fn render_types(&mut self) -> Result<Cow<'static, str>, Error>
pub fn render_types(&mut self) -> Result<Cow<'static, str>, Error>
Render the types within the TypeCollection.
This will only work if used within [Self::framework_runtime] function. It allows frameworks to intersperse their user types into their runtime code.
Methods from Deref<Target = Exporter>§
Trait Implementations§
Source§impl AsRef<Exporter> for FrameworkExporter<'_>
impl AsRef<Exporter> for FrameworkExporter<'_>
Source§impl Debug for FrameworkExporter<'_>
impl Debug for FrameworkExporter<'_>
Auto Trait Implementations§
impl<'a> Freeze for FrameworkExporter<'a>
impl<'a> !RefUnwindSafe for FrameworkExporter<'a>
impl<'a> Send for FrameworkExporter<'a>
impl<'a> Sync for FrameworkExporter<'a>
impl<'a> Unpin for FrameworkExporter<'a>
impl<'a> UnsafeUnpin for FrameworkExporter<'a>
impl<'a> !UnwindSafe for FrameworkExporter<'a>
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