#[non_exhaustive]pub struct Stripped {
pub code: String,
}Expand description
A successful strip.
let stripped = tsv_ts::strip("function f<T>(a: T): T { return a; }")?;
assert_eq!(stripped.code, "function f (a ) { return a; }");Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.code: StringThe JS: the source with every type-only range blanked, the source itself when nothing is type-only.
Trait Implementations§
impl Eq for Stripped
impl StructuralPartialEq for Stripped
Auto Trait Implementations§
impl Freeze for Stripped
impl RefUnwindSafe for Stripped
impl Send for Stripped
impl Sync for Stripped
impl Unpin for Stripped
impl UnsafeUnpin for Stripped
impl UnwindSafe for Stripped
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