mirror of
https://github.com/storytold/storyteller-bevy.git
synced 2026-10-18 00:23:14 +00:00
Progress bar for scene loading (#71)
This commit is contained in:
@@ -147,6 +147,12 @@ impl AsJsValue for u32 {
|
||||
}
|
||||
}
|
||||
|
||||
impl AsJsValue for usize {
|
||||
fn as_js(&self) -> Result<JsValue, String> {
|
||||
Ok(JsValue::from_f64(*self as f64))
|
||||
}
|
||||
}
|
||||
|
||||
/// A crate-local version of `std::str::FromStr` that can be implemented for
|
||||
/// foreign types
|
||||
pub trait FromStr: Sized {
|
||||
|
||||
Reference in New Issue
Block a user