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§
source§impl PartialEq<[u8]> for Clob
impl PartialEq<[u8]> for Clob
source§impl PartialEq<Clob> for Clob
impl PartialEq<Clob> for Clob
impl Eq for Clob
impl StructuralEq for Clob
impl StructuralPartialEq for Clob
Auto Trait Implementations§
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<V> IntoAnnotatedElement for Vwhere
V: Into<Value>,
impl<V> IntoAnnotatedElement for Vwhere V: Into<Value>,
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.