Struct nostr_types::ShatteredContent
source · pub struct ShatteredContent {
pub segments: Vec<ContentSegment>,
pub allocated: String,
}
Expand description
A sequence of content segments
Fields§
§segments: Vec<ContentSegment>
The sequence of ContentSegment
s
allocated: String
The original content (the allocated string)
Range
s within segments refer to this
Implementations§
Trait Implementations§
source§impl Clone for ShatteredContent
impl Clone for ShatteredContent
source§fn clone(&self) -> ShatteredContent
fn clone(&self) -> ShatteredContent
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ShatteredContent
impl RefUnwindSafe for ShatteredContent
impl Send for ShatteredContent
impl Sync for ShatteredContent
impl Unpin for ShatteredContent
impl UnwindSafe for ShatteredContent
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