[−][src]Enum binjs_shared::SharedString
An implementation of strings that may easily be shared without copies.
Static strings may be imported without copy, while dynamic strings
are converted into Rc
.
Variants
Static(&'static str)
Methods
impl SharedString
[src][−]
pub fn as_str(&self) -> &str
[src]
pub const fn from_str(value: &'static str) -> Self
[src]
pub fn from_rc_string(value: Rc<String>) -> Self
[src]
pub fn from_string(value: String) -> Self
[src]
Trait Implementations
impl Clone for SharedString
[src][+]
impl Debug for SharedString
[src][+]
impl Default for SharedString
[src][+]
impl Deref for SharedString
[src][+]
impl<'de> Deserialize<'de> for SharedString
[src][+]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src][−]
D: Deserializer<'de>,
impl Display for SharedString
[src][+]
impl Eq for SharedString
[src]
impl Hash for SharedString
[src][+]
impl Ord for SharedString
[src][+]
impl<'a> PartialEq<&'a str> for SharedString
[src][+]
impl PartialEq<SharedString> for SharedString
[src][+]
impl PartialEq<str> for SharedString
[src][+]
impl PartialOrd<SharedString> for SharedString
[src][+]
impl Serialize for SharedString
[src][+]
impl StructuralEq for SharedString
[src]
Auto Trait Implementations
impl !RefUnwindSafe for SharedString
impl !Send for SharedString
impl !Sync for SharedString
impl Unpin for SharedString
impl UnwindSafe for SharedString
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> Downcast for T where
T: Any,
[src][+]
T: Any,
impl<T> DowncastSync for T where
T: Send + Sync + Any,
[src][+]
T: Send + Sync + Any,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T> ToString for T where
T: Display + ?Sized,
[src][+]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,