pub struct BookText;Expand description
A shown text: as yog_data::TextOf, and every link in it
({link=@entry:…|…}, or a web address) checked.
Trait Implementations§
Source§impl With<String> for BookText
impl With<String> for BookText
Source§fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<String>
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<String>
A .yres text’s links are its resolver’s to check, as it expands it.
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 write_text(f: &F, w: &mut Writer)
fn write_text(f: &F, w: &mut Writer)
The field as text, straight: its value as text unless the codec
knows better (see
Schema::write_text).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 BookText
impl RefUnwindSafe for BookText
impl Send for BookText
impl Sync for BookText
impl Unpin for BookText
impl UnsafeUnpin for BookText
impl UnwindSafe for BookText
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