pub struct ContainerBody {
pub content_start: usize,
pub content_end: usize,
pub inner_indent: String,
pub is_empty: bool,
}Expand description
Location of a container’s body (for prepend/append editing operations)
Fields§
§content_start: usizeByte offset where body content starts (after opening delimiter/heading)
content_end: usizeByte offset where body content ends (before closing delimiter)
inner_indent: StringIndentation string for new content inserted into the body
is_empty: boolTrue if the body has no meaningful content (empty, only pass/braces)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ContainerBody
impl RefUnwindSafe for ContainerBody
impl Send for ContainerBody
impl Sync for ContainerBody
impl Unpin for ContainerBody
impl UnsafeUnpin for ContainerBody
impl UnwindSafe for ContainerBody
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request