pub enum TsainPattern {
Enum(Composition<Vec<Option<(&'static str, Composition<Vec<(&'static str, &'static str)>>)>>>),
Struct(Composition<Vec<(&'static str, &'static str)>>),
}Expand description
Object Pattern
Variants§
Enum(Composition<Vec<Option<(&'static str, Composition<Vec<(&'static str, &'static str)>>)>>>)
Struct(Composition<Vec<(&'static str, &'static str)>>)
Implementations§
Source§impl TsainPattern
impl TsainPattern
pub fn new_enum( rs_name: &'static str, ts_name: &'static str, type_args: Vec<&'static str>, list: Vec<Option<(&'static str, Composition<Vec<(&'static str, &'static str)>>)>>, ) -> TsainPattern
pub fn new_struct( rs_name: &'static str, ts_name: &'static str, type_args: Vec<&'static str>, list: Vec<(&'static str, &'static str)>, skip_brand: bool, extra_brands: Vec<[&'static str; 2]>, ) -> TsainPattern
pub fn rs_name(&self) -> &str
pub fn format_type_script(&self) -> String
Auto Trait Implementations§
impl Freeze for TsainPattern
impl RefUnwindSafe for TsainPattern
impl Send for TsainPattern
impl Sync for TsainPattern
impl Unpin for TsainPattern
impl UnsafeUnpin for TsainPattern
impl UnwindSafe for TsainPattern
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