pub struct Clob(pub Bytes);
Expand description
An in-memory representation of an Ion clob.
use ion_rs::element::Clob;
let clob: Clob = "hello".into();
assert_eq!(&clob, "hello".as_bytes());
assert_eq!(clob.as_slice().len(), 5);
Tuple Fields§
§0: Bytes
Implementations§
Trait Implementations§
impl Eq for Clob
impl StructuralPartialEq for Clob
Auto Trait Implementations§
impl Freeze for Clob
impl RefUnwindSafe for Clob
impl Send for Clob
impl Sync for Clob
impl Unpin for Clob
impl UnwindSafe for Clob
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<V> IntoAnnotatedElement for V
impl<V> IntoAnnotatedElement for V
Source§fn with_annotations<I: IntoAnnotations>(self, annotations: I) -> Element
fn with_annotations<I: IntoAnnotations>(self, annotations: I) -> Element
Converts the value into an Element with the specified annotations.