diff options
author | pommicket <pommicket@gmail.com> | 2022-12-16 22:00:01 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2022-12-16 22:00:01 -0500 |
commit | 7c8aac1bfb839a1aa4076a71fbc1dd70dd487e35 (patch) | |
tree | 628e24a9161015a0199c8a56d531961dbb8dc174 /src/sdf.rs | |
parent | bac9af4139315daae65323c9cd84a5c867844399 (diff) |
Code Quality™
Diffstat (limited to 'src/sdf.rs')
-rw-r--r-- | src/sdf.rs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -539,7 +539,7 @@ pub struct Scene { } impl Scene { - pub fn to_string(&self) -> String { + pub fn export_string(&self) -> String { let mut data: Vec<u8> = vec![]; // write errors should never happen // that said, we don't want to panic if for whatever reason this fails. @@ -548,7 +548,7 @@ impl Scene { } /// returns None if `s` is not a valid SDF string - pub fn from_string(s: &str) -> Option<Self> { + pub fn import_string(s: &str) -> Option<Self> { let bytes = decode_hex(s)?; serde_cbor::from_reader(&bytes[..]).ok()? } |