pub struct TextOf;Expand description
A text (Text: written, a .yres text, or a name), kept resolved.
Trait Implementations§
Source§impl With<String> for TextOf
impl With<String> for TextOf
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<String>
fn write(f: &String) -> Value
Source§fn encode(f: &F, w: &mut Writer)
fn encode(f: &F, w: &mut Writer)
The field in the binary form, straight: its value encoded unless
the codec knows better.
Source§fn decode(d: &mut Decoder<'_>) -> Option<F>
fn decode(d: &mut Decoder<'_>) -> Option<F>
The field from the binary form, straight;
None sends the read the
slow way (see Schema::decode).Auto Trait Implementations§
impl Freeze for TextOf
impl RefUnwindSafe for TextOf
impl Send for TextOf
impl Sync for TextOf
impl Unpin for TextOf
impl UnsafeUnpin for TextOf
impl UnwindSafe for TextOf
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more