pub enum Script {
Rs(Block),
Other {
lang: String,
code: String,
},
}Expand description
§Script
which is from .gen file, in .gen file, people can write rust code or ets code
<script lang="rust">or<script>is rust code (default is rust code for makepad framework)<script lang="ets">is ets code (ets is now for ark HarmonyOs)
if is rust code use Block to store, otherwise use String to store
Variants§
Implementations§
Trait Implementations§
impl StructuralPartialEq for Script
Auto Trait Implementations§
impl Freeze for Script
impl RefUnwindSafe for Script
impl !Send for Script
impl !Sync for Script
impl Unpin for Script
impl UnwindSafe for Script
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