-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove
TryFrom<Sexp> for usize
and add NumericScalar::as_usize()
,…
… `NumericSexp::iter_usize()` (#311)
- Loading branch information
1 parent
7c36f4f
commit 3cfb6f6
Showing
14 changed files
with
229 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
use savvy::savvy; | ||
|
||
#[savvy] | ||
fn new_int(size: usize) -> savvy::Result<savvy::Sexp> { | ||
savvy::OwnedIntegerSexp::new(size)?.into() | ||
fn new_int(size: i32) -> savvy::Result<savvy::Sexp> { | ||
savvy::OwnedIntegerSexp::new(size as usize)?.into() | ||
} | ||
|
||
#[savvy] | ||
fn new_real(size: usize) -> savvy::Result<savvy::Sexp> { | ||
savvy::OwnedRealSexp::new(size)?.into() | ||
fn new_real(size: i32) -> savvy::Result<savvy::Sexp> { | ||
savvy::OwnedRealSexp::new(size as usize)?.into() | ||
} | ||
|
||
#[savvy] | ||
fn new_bool(size: usize) -> savvy::Result<savvy::Sexp> { | ||
savvy::OwnedLogicalSexp::new(size)?.into() | ||
fn new_bool(size: i32) -> savvy::Result<savvy::Sexp> { | ||
savvy::OwnedLogicalSexp::new(size as usize)?.into() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.