Skip to main content

zvariant/
str.rs

1/// This type is used for keeping strings in a [`Value`], among other things.
2///
3/// [`Value`]: crate::Value::Str
4pub use zcheapstr::CheapStr as Str;
5
6use crate::{Basic, Type};
7
8impl Basic for Str<'_> {
9    const SIGNATURE_CHAR: char = <&str>::SIGNATURE_CHAR;
10    const SIGNATURE_STR: &'static str = <&str>::SIGNATURE_STR;
11}
12
13impl Type for Str<'_> {
14    const SIGNATURE: &'static crate::Signature = &crate::Signature::Str;
15}