pub struct HotReloadFormattedSegment {
pub formatted_input: IfmtInput,
pub dynamic_node_indexes: Vec<DynIdx>,
}
Expand description
A formatted segment that can be hot reloaded
Fields§
§formatted_input: IfmtInput
§dynamic_node_indexes: Vec<DynIdx>
Implementations§
Methods from Deref<Target = IfmtInput>§
pub fn span(&self) -> Span
pub fn is_static(&self) -> bool
pub fn to_static(&self) -> Option<String>
pub fn dynamic_segments(&self) -> Vec<&FormattedSegment>
pub fn dynamic_seg_frequency_map(&self) -> HashMap<&FormattedSegment, usize>
Sourcepub fn to_string_with_quotes(&self) -> String
pub fn to_string_with_quotes(&self) -> String
print the original source string - this handles escapes and stuff for us
Trait Implementations§
Source§impl Clone for HotReloadFormattedSegment
impl Clone for HotReloadFormattedSegment
Source§fn clone(&self) -> HotReloadFormattedSegment
fn clone(&self) -> HotReloadFormattedSegment
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 moreSource§impl Debug for HotReloadFormattedSegment
impl Debug for HotReloadFormattedSegment
Source§impl Deref for HotReloadFormattedSegment
impl Deref for HotReloadFormattedSegment
Source§impl From<IfmtInput> for HotReloadFormattedSegment
impl From<IfmtInput> for HotReloadFormattedSegment
Source§impl Hash for HotReloadFormattedSegment
impl Hash for HotReloadFormattedSegment
Source§impl Parse for HotReloadFormattedSegment
impl Parse for HotReloadFormattedSegment
fn parse(input: ParseStream<'_>) -> Result<Self>
Source§impl ToTokens for HotReloadFormattedSegment
impl ToTokens for HotReloadFormattedSegment
Source§fn to_tokens(&self, tokens: &mut TokenStream2)
fn to_tokens(&self, tokens: &mut TokenStream2)
Source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Source§fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
impl Eq for HotReloadFormattedSegment
impl StructuralPartialEq for HotReloadFormattedSegment
Auto Trait Implementations§
impl Freeze for HotReloadFormattedSegment
impl !RefUnwindSafe for HotReloadFormattedSegment
impl !Send for HotReloadFormattedSegment
impl !Sync for HotReloadFormattedSegment
impl Unpin for HotReloadFormattedSegment
impl UnwindSafe for HotReloadFormattedSegment
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Spanned for Twhere
T: Spanned + ?Sized,
impl<T> Spanned for Twhere
T: Spanned + ?Sized,
Source§fn span(&self) -> Span
fn span(&self) -> Span
Returns a
Span
covering the complete contents of this syntax tree
node, or Span::call_site()
if this node is empty.