#[repr(C)]pub struct FigRegion {
pub size: u32,
pub open_fence: FigSpan,
pub content: FigSpan,
pub close_fence: FigSpan,
pub body: FigSpan,
pub body_before: FigSpan,
pub body_after: FigSpan,
}Fields§
§size: u32Size-version tag: set to size_of::<FigRegion>() before
fig_embed_extract so the library only writes the fields this layout
covers. A zero size (e.g. from Default) makes the library write
nothing — always set it explicitly.
open_fence: FigSpan§content: FigSpan§close_fence: FigSpan§body: FigSpan§body_before: FigSpan[0, open_fence.start) and [close_fence.end, input_len) — the host
text on each side of the block. With the three region spans they tile
the input exactly, so a rebuild loses nothing. Added in core 2.7.0; an older
size leaves them unwritten.
body_after: FigSpanTrait Implementations§
Auto Trait Implementations§
impl Freeze for FigRegion
impl RefUnwindSafe for FigRegion
impl Send for FigRegion
impl Sync for FigRegion
impl Unpin for FigRegion
impl UnsafeUnpin for FigRegion
impl UnwindSafe for FigRegion
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