pub type OwnedLiteral = Literal<String>;
Expand description
A literal which owns the underlying buffer.
Aliased Type§
enum OwnedLiteral {
Bool(BoolLit),
Integer(IntegerLit<String>),
Float(FloatLit<String>),
Char(CharLit<String>),
String(StringLit<String>),
Byte(ByteLit<String>),
ByteString(ByteStringLit<String>),
}
Variants§
Bool(BoolLit)
Integer(IntegerLit<String>)
Float(FloatLit<String>)
Char(CharLit<String>)
String(StringLit<String>)
Byte(ByteLit<String>)
ByteString(ByteStringLit<String>)
Implementations
Trait Implementations
Source§impl<B: Buffer> From<ByteStringLit<B>> for Literal<B>
impl<B: Buffer> From<ByteStringLit<B>> for Literal<B>
Source§fn from(src: ByteStringLit<B>) -> Self
fn from(src: ByteStringLit<B>) -> Self
Converts to this type from the input type.
Source§impl<B: Buffer> From<IntegerLit<B>> for Literal<B>
impl<B: Buffer> From<IntegerLit<B>> for Literal<B>
Source§fn from(src: IntegerLit<B>) -> Self
fn from(src: IntegerLit<B>) -> Self
Converts to this type from the input type.