pub struct LongString {}Expand description
Arbitrary-length UTF-8 text stored as a blob.
Use for text that does not fit in the 32-byte ShortString
value boundary — documents, prompts, JSON payloads, logs, etc.
Reference it from tribles via a Handle<Blake3, LongString>.
Trait Implementations§
Source§impl BlobSchema for LongString
impl BlobSchema for LongString
Source§impl ConstDescribe for LongString
impl ConstDescribe for LongString
Source§impl ToBlob<LongString> for &'static str
impl ToBlob<LongString> for &'static str
Source§fn to_blob(self) -> Blob<LongString>
fn to_blob(self) -> Blob<LongString>
Converts this value into a blob.
Source§impl ToBlob<LongString> for String
impl ToBlob<LongString> for String
Source§fn to_blob(self) -> Blob<LongString>
fn to_blob(self) -> Blob<LongString>
Converts this value into a blob.
Source§impl ToBlob<LongString> for View<str>
impl ToBlob<LongString> for View<str>
Source§fn to_blob(self) -> Blob<LongString>
fn to_blob(self) -> Blob<LongString>
Converts this value into a blob.
Source§impl TryFromBlob<LongString> for View<str>
impl TryFromBlob<LongString> for View<str>
Auto Trait Implementations§
impl Freeze for LongString
impl RefUnwindSafe for LongString
impl Send for LongString
impl Sync for LongString
impl Unpin for LongString
impl UnsafeUnpin for LongString
impl UnwindSafe for LongString
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
Source§impl<T> Describe for Twhere
T: ConstDescribe,
impl<T> Describe for Twhere
T: ConstDescribe,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more