pub struct TsScript { /* private fields */ }Implementations§
Source§impl TsScript
impl TsScript
pub fn new() -> Self
Sourcepub fn with_comment<T: Into<String>>(self, comment: T) -> Self
pub fn with_comment<T: Into<String>>(self, comment: T) -> Self
Set comment
Sourcepub fn with_exclusive<T: Into<String>>(self, exclusive: Vec<T>) -> Self
pub fn with_exclusive<T: Into<String>>(self, exclusive: Vec<T>) -> Self
Set exclusive type list
Sourcepub fn with_exclude<T: Into<String>>(self, exclude: Vec<T>) -> Self
pub fn with_exclude<T: Into<String>>(self, exclude: Vec<T>) -> Self
Add excluded type list
Sourcepub fn build_script(&self) -> String
pub fn build_script(&self) -> String
Build and return the script
Sourcepub fn export_script(&self, path: impl AsRef<Path>)
pub fn export_script(&self, path: impl AsRef<Path>)
Create a script file at the path
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TsScript
impl RefUnwindSafe for TsScript
impl Send for TsScript
impl Sync for TsScript
impl Unpin for TsScript
impl UnsafeUnpin for TsScript
impl UnwindSafe for TsScript
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