Use stable rust
This commit is contained in:
parent
31993762de
commit
c2144a2634
18 changed files with 118 additions and 44 deletions
12
src/wasm.rs
12
src/wasm.rs
|
|
@ -139,13 +139,19 @@ pub struct TextWithCursorsAndHistory {
|
|||
#[wasm_bindgen]
|
||||
impl TextWithCursorsAndHistory {
|
||||
#[must_use]
|
||||
pub fn text(&self) -> String { self.text_with_cursors.text() }
|
||||
pub fn text(&self) -> String {
|
||||
self.text_with_cursors.text()
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
pub fn cursors(&self) -> Vec<CursorPosition> { self.text_with_cursors.cursors() }
|
||||
pub fn cursors(&self) -> Vec<CursorPosition> {
|
||||
self.text_with_cursors.cursors()
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
pub fn history(&self) -> Vec<SpanWithHistory> { self.history.clone() }
|
||||
pub fn history(&self) -> Vec<SpanWithHistory> {
|
||||
self.history.clone()
|
||||
}
|
||||
}
|
||||
|
||||
/// Returns the UTF8 parsed string if it's a text, or `None` if it's likely
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue