pub struct RichTextBlock<'a> {
pub _tab: Table<'a>,
}Fields§
§_tab: Table<'a>Implementations§
Source§impl<'a> RichTextBlock<'a>
impl<'a> RichTextBlock<'a>
pub const VT_BLOCK_TYPE: VOffsetT = 4
pub const VT_LEVEL: VOffsetT = 6
pub const VT_CHILDREN: VOffsetT = 8
pub const VT_MEDIA_SRC: VOffsetT = 10
pub const VT_MEDIA_ALT: VOffsetT = 12
pub const VT_CODE_LANGUAGE: VOffsetT = 14
pub const VT_ROWS: VOffsetT = 16
pub unsafe fn init_from_table(table: Table<'a>) -> Self
pub fn create<'bldr: 'args, 'args: 'mut_bldr, 'mut_bldr, A: Allocator + 'bldr>( _fbb: &'mut_bldr mut FlatBufferBuilder<'bldr, A>, args: &'args RichTextBlockArgs<'args>, ) -> WIPOffset<RichTextBlock<'bldr>>
pub fn block_type(&self) -> RichTextBlockType
Sourcepub fn children(&self) -> Option<Vector<'a, ForwardsUOffset<RichTextSpan<'a>>>>
pub fn children(&self) -> Option<Vector<'a, ForwardsUOffset<RichTextSpan<'a>>>>
Inline text content.
pub fn media_alt(&self) -> Option<&'a str>
Sourcepub fn code_language(&self) -> Option<&'a str>
pub fn code_language(&self) -> Option<&'a str>
For CodeBlock — language hint.
Sourcepub fn rows(&self) -> Option<Vector<'a, ForwardsUOffset<RichTextBlock<'a>>>>
pub fn rows(&self) -> Option<Vector<'a, ForwardsUOffset<RichTextBlock<'a>>>>
For Table — nested rows.
Trait Implementations§
Source§impl<'a> Clone for RichTextBlock<'a>
impl<'a> Clone for RichTextBlock<'a>
Source§fn clone(&self) -> RichTextBlock<'a>
fn clone(&self) -> RichTextBlock<'a>
Returns a duplicate 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 moreSource§impl Debug for RichTextBlock<'_>
impl Debug for RichTextBlock<'_>
Source§impl<'a> Follow<'a> for RichTextBlock<'a>
impl<'a> Follow<'a> for RichTextBlock<'a>
Source§impl<'a> PartialEq for RichTextBlock<'a>
impl<'a> PartialEq for RichTextBlock<'a>
Source§impl Verifiable for RichTextBlock<'_>
impl Verifiable for RichTextBlock<'_>
Source§fn run_verifier(
v: &mut Verifier<'_, '_>,
pos: usize,
) -> Result<(), InvalidFlatbuffer>
fn run_verifier( v: &mut Verifier<'_, '_>, pos: usize, ) -> Result<(), InvalidFlatbuffer>
Runs the verifier for this type, assuming its at position
pos in the verifier’s buffer.
Should not need to be called directly.impl<'a> Copy for RichTextBlock<'a>
impl<'a> StructuralPartialEq for RichTextBlock<'a>
Auto Trait Implementations§
impl<'a> Freeze for RichTextBlock<'a>
impl<'a> RefUnwindSafe for RichTextBlock<'a>
impl<'a> Send for RichTextBlock<'a>
impl<'a> Sync for RichTextBlock<'a>
impl<'a> Unpin for RichTextBlock<'a>
impl<'a> UnsafeUnpin for RichTextBlock<'a>
impl<'a> UnwindSafe for RichTextBlock<'a>
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