mirror of
https://github.com/emilk/egui.git
synced 2026-09-02 14:50:03 -04:00
Fix broken markdown in docstring
This commit is contained in:
@@ -294,7 +294,7 @@ impl Storage for DummyStorage {
|
|||||||
fn flush(&mut self) {}
|
fn flush(&mut self) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Get an deserialize the [RON](https://github.com/ron-rs/ron] stored at the given key.
|
/// Get an deserialize the [RON](https://github.com/ron-rs/ron) stored at the given key.
|
||||||
#[cfg(feature = "ron")]
|
#[cfg(feature = "ron")]
|
||||||
pub fn get_value<T: serde::de::DeserializeOwned>(storage: &dyn Storage, key: &str) -> Option<T> {
|
pub fn get_value<T: serde::de::DeserializeOwned>(storage: &dyn Storage, key: &str) -> Option<T> {
|
||||||
storage
|
storage
|
||||||
@@ -302,7 +302,7 @@ pub fn get_value<T: serde::de::DeserializeOwned>(storage: &dyn Storage, key: &st
|
|||||||
.and_then(|value| ron::from_str(&value).ok())
|
.and_then(|value| ron::from_str(&value).ok())
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Serialize the given value as [RON](https://github.com/ron-rs/ron] and store with the given key.
|
/// Serialize the given value as [RON](https://github.com/ron-rs/ron) and store with the given key.
|
||||||
#[cfg(feature = "ron")]
|
#[cfg(feature = "ron")]
|
||||||
pub fn set_value<T: serde::Serialize>(storage: &mut dyn Storage, key: &str, value: &T) {
|
pub fn set_value<T: serde::Serialize>(storage: &mut dyn Storage, key: &str, value: &T) {
|
||||||
storage.set_string(
|
storage.set_string(
|
||||||
|
|||||||
Reference in New Issue
Block a user