pub struct TypescriptAccumulator { /* private fields */ }Expand description
Typescript support.
Implementations§
Trait Implementations§
Source§impl Default for TypescriptAccumulator
impl Default for TypescriptAccumulator
Source§fn default() -> TypescriptAccumulator
fn default() -> TypescriptAccumulator
Returns the “default value” for a type. Read more
Source§impl TypeAccumulator for TypescriptAccumulator
impl TypeAccumulator for TypescriptAccumulator
fn end(&mut self) -> String
fn number(&mut self, key: &str, _: Number) -> Result<(), Error>
fn boolean(&mut self, key: &str) -> Result<(), Error>
fn string(&mut self, key: &str) -> Result<(), Error>
fn unknown(&mut self, key: &str) -> Result<(), Error>
fn array(&mut self, key: &str, ty: JsonType) -> Result<(), Error>
fn object(&mut self, key: &str, object_name: &str) -> Result<(), Error>
fn push_object_type(&mut self, object_name: &str) -> Result<(), Error>
fn pop_object_type(&mut self) -> Result<(), Error>
fn prefered_object_name(&self) -> String
Auto Trait Implementations§
impl Freeze for TypescriptAccumulator
impl RefUnwindSafe for TypescriptAccumulator
impl Send for TypescriptAccumulator
impl Sync for TypescriptAccumulator
impl Unpin for TypescriptAccumulator
impl UnwindSafe for TypescriptAccumulator
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