Parser

Struct Parser 

Source
pub struct Parser {
    pub functions: Vec<ParsedFunction>,
    pub relative_path: String,
}

Fields§

§functions: Vec<ParsedFunction>

All found functions in the source code

§relative_path: String

Relative path to currently processing file

Implementations§

Source§

impl Parser

Source

pub fn new(path: Option<&PathBuf>) -> Result<Self>

Init new Parser

And optionally parse the requested dir

Source

pub fn walk_dir(&mut self, path: &PathBuf) -> Result<()>

Source

pub fn set_relative_path(&mut self, file_path: Option<&str>)

Trait Implementations§

Source§

impl Debug for Parser

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Parser

Source§

fn default() -> Parser

Returns the “default value” for a type. Read more
Source§

impl Visit<'_> for Parser

Source§

fn visit_item_fn(&mut self, item: &ItemFn)

Visits function definitions

Source§

fn visit_abi(&mut self, i: &'ast Abi)

Source§

fn visit_angle_bracketed_generic_arguments( &mut self, i: &'ast AngleBracketedGenericArguments, )

Source§

fn visit_arm(&mut self, i: &'ast Arm)

Source§

fn visit_assoc_const(&mut self, i: &'ast AssocConst)

Source§

fn visit_assoc_type(&mut self, i: &'ast AssocType)

Source§

fn visit_attr_style(&mut self, i: &'ast AttrStyle)

Source§

fn visit_attribute(&mut self, i: &'ast Attribute)

Source§

fn visit_bare_fn_arg(&mut self, i: &'ast BareFnArg)

Source§

fn visit_bare_variadic(&mut self, i: &'ast BareVariadic)

Source§

fn visit_bin_op(&mut self, i: &'ast BinOp)

Source§

fn visit_block(&mut self, i: &'ast Block)

Source§

fn visit_bound_lifetimes(&mut self, i: &'ast BoundLifetimes)

Source§

fn visit_captured_param(&mut self, i: &'ast CapturedParam)

Source§

fn visit_const_param(&mut self, i: &'ast ConstParam)

Source§

fn visit_constraint(&mut self, i: &'ast Constraint)

Source§

fn visit_data(&mut self, i: &'ast Data)

Source§

fn visit_data_enum(&mut self, i: &'ast DataEnum)

Source§

fn visit_data_struct(&mut self, i: &'ast DataStruct)

Source§

fn visit_data_union(&mut self, i: &'ast DataUnion)

Source§

fn visit_derive_input(&mut self, i: &'ast DeriveInput)

Source§

fn visit_expr(&mut self, i: &'ast Expr)

Source§

fn visit_expr_array(&mut self, i: &'ast ExprArray)

Source§

fn visit_expr_assign(&mut self, i: &'ast ExprAssign)

Source§

fn visit_expr_async(&mut self, i: &'ast ExprAsync)

Source§

fn visit_expr_await(&mut self, i: &'ast ExprAwait)

Source§

fn visit_expr_binary(&mut self, i: &'ast ExprBinary)

Source§

fn visit_expr_block(&mut self, i: &'ast ExprBlock)

Source§

fn visit_expr_break(&mut self, i: &'ast ExprBreak)

Source§

fn visit_expr_call(&mut self, i: &'ast ExprCall)

Source§

fn visit_expr_cast(&mut self, i: &'ast ExprCast)

Source§

fn visit_expr_closure(&mut self, i: &'ast ExprClosure)

Source§

fn visit_expr_const(&mut self, i: &'ast ExprConst)

Source§

fn visit_expr_continue(&mut self, i: &'ast ExprContinue)

Source§

fn visit_expr_field(&mut self, i: &'ast ExprField)

Source§

fn visit_expr_for_loop(&mut self, i: &'ast ExprForLoop)

Source§

fn visit_expr_group(&mut self, i: &'ast ExprGroup)

Source§

fn visit_expr_if(&mut self, i: &'ast ExprIf)

Source§

fn visit_expr_index(&mut self, i: &'ast ExprIndex)

Source§

fn visit_expr_infer(&mut self, i: &'ast ExprInfer)

Source§

fn visit_expr_let(&mut self, i: &'ast ExprLet)

Source§

fn visit_expr_lit(&mut self, i: &'ast ExprLit)

Source§

fn visit_expr_loop(&mut self, i: &'ast ExprLoop)

Source§

fn visit_expr_macro(&mut self, i: &'ast ExprMacro)

Source§

fn visit_expr_match(&mut self, i: &'ast ExprMatch)

Source§

fn visit_expr_method_call(&mut self, i: &'ast ExprMethodCall)

Source§

fn visit_expr_paren(&mut self, i: &'ast ExprParen)

Source§

fn visit_expr_path(&mut self, i: &'ast ExprPath)

Source§

fn visit_expr_range(&mut self, i: &'ast ExprRange)

Source§

fn visit_expr_raw_addr(&mut self, i: &'ast ExprRawAddr)

Source§

fn visit_expr_reference(&mut self, i: &'ast ExprReference)

Source§

fn visit_expr_repeat(&mut self, i: &'ast ExprRepeat)

Source§

fn visit_expr_return(&mut self, i: &'ast ExprReturn)

Source§

fn visit_expr_struct(&mut self, i: &'ast ExprStruct)

Source§

fn visit_expr_try(&mut self, i: &'ast ExprTry)

Source§

fn visit_expr_try_block(&mut self, i: &'ast ExprTryBlock)

Source§

fn visit_expr_tuple(&mut self, i: &'ast ExprTuple)

Source§

fn visit_expr_unary(&mut self, i: &'ast ExprUnary)

Source§

fn visit_expr_unsafe(&mut self, i: &'ast ExprUnsafe)

Source§

fn visit_expr_while(&mut self, i: &'ast ExprWhile)

Source§

fn visit_expr_yield(&mut self, i: &'ast ExprYield)

Source§

fn visit_field(&mut self, i: &'ast Field)

Source§

fn visit_field_mutability(&mut self, i: &'ast FieldMutability)

Source§

fn visit_field_pat(&mut self, i: &'ast FieldPat)

Source§

fn visit_field_value(&mut self, i: &'ast FieldValue)

Source§

fn visit_fields(&mut self, i: &'ast Fields)

Source§

fn visit_fields_named(&mut self, i: &'ast FieldsNamed)

Source§

fn visit_fields_unnamed(&mut self, i: &'ast FieldsUnnamed)

Source§

fn visit_file(&mut self, i: &'ast File)

Source§

fn visit_fn_arg(&mut self, i: &'ast FnArg)

Source§

fn visit_foreign_item(&mut self, i: &'ast ForeignItem)

Source§

fn visit_foreign_item_fn(&mut self, i: &'ast ForeignItemFn)

Source§

fn visit_foreign_item_macro(&mut self, i: &'ast ForeignItemMacro)

Source§

fn visit_foreign_item_static(&mut self, i: &'ast ForeignItemStatic)

Source§

fn visit_foreign_item_type(&mut self, i: &'ast ForeignItemType)

Source§

fn visit_generic_argument(&mut self, i: &'ast GenericArgument)

Source§

fn visit_generic_param(&mut self, i: &'ast GenericParam)

Source§

fn visit_generics(&mut self, i: &'ast Generics)

Source§

fn visit_ident(&mut self, i: &'ast Ident)

Source§

fn visit_impl_item(&mut self, i: &'ast ImplItem)

Source§

fn visit_impl_item_const(&mut self, i: &'ast ImplItemConst)

Source§

fn visit_impl_item_fn(&mut self, i: &'ast ImplItemFn)

Source§

fn visit_impl_item_macro(&mut self, i: &'ast ImplItemMacro)

Source§

fn visit_impl_item_type(&mut self, i: &'ast ImplItemType)

Source§

fn visit_impl_restriction(&mut self, i: &'ast ImplRestriction)

Source§

fn visit_index(&mut self, i: &'ast Index)

Source§

fn visit_item(&mut self, i: &'ast Item)

Source§

fn visit_item_const(&mut self, i: &'ast ItemConst)

Source§

fn visit_item_enum(&mut self, i: &'ast ItemEnum)

Source§

fn visit_item_extern_crate(&mut self, i: &'ast ItemExternCrate)

Source§

fn visit_item_foreign_mod(&mut self, i: &'ast ItemForeignMod)

Source§

fn visit_item_impl(&mut self, i: &'ast ItemImpl)

Source§

fn visit_item_macro(&mut self, i: &'ast ItemMacro)

Source§

fn visit_item_mod(&mut self, i: &'ast ItemMod)

Source§

fn visit_item_static(&mut self, i: &'ast ItemStatic)

Source§

fn visit_item_struct(&mut self, i: &'ast ItemStruct)

Source§

fn visit_item_trait(&mut self, i: &'ast ItemTrait)

Source§

fn visit_item_trait_alias(&mut self, i: &'ast ItemTraitAlias)

Source§

fn visit_item_type(&mut self, i: &'ast ItemType)

Source§

fn visit_item_union(&mut self, i: &'ast ItemUnion)

Source§

fn visit_item_use(&mut self, i: &'ast ItemUse)

Source§

fn visit_label(&mut self, i: &'ast Label)

Source§

fn visit_lifetime(&mut self, i: &'ast Lifetime)

Source§

fn visit_lifetime_param(&mut self, i: &'ast LifetimeParam)

Source§

fn visit_lit(&mut self, i: &'ast Lit)

Source§

fn visit_lit_bool(&mut self, i: &'ast LitBool)

Source§

fn visit_lit_byte(&mut self, i: &'ast LitByte)

Source§

fn visit_lit_byte_str(&mut self, i: &'ast LitByteStr)

Source§

fn visit_lit_cstr(&mut self, i: &'ast LitCStr)

Source§

fn visit_lit_char(&mut self, i: &'ast LitChar)

Source§

fn visit_lit_float(&mut self, i: &'ast LitFloat)

Source§

fn visit_lit_int(&mut self, i: &'ast LitInt)

Source§

fn visit_lit_str(&mut self, i: &'ast LitStr)

Source§

fn visit_local(&mut self, i: &'ast Local)

Source§

fn visit_local_init(&mut self, i: &'ast LocalInit)

Source§

fn visit_macro(&mut self, i: &'ast Macro)

Source§

fn visit_macro_delimiter(&mut self, i: &'ast MacroDelimiter)

Source§

fn visit_member(&mut self, i: &'ast Member)

Source§

fn visit_meta(&mut self, i: &'ast Meta)

Source§

fn visit_meta_list(&mut self, i: &'ast MetaList)

Source§

fn visit_meta_name_value(&mut self, i: &'ast MetaNameValue)

Source§

fn visit_parenthesized_generic_arguments( &mut self, i: &'ast ParenthesizedGenericArguments, )

Source§

fn visit_pat(&mut self, i: &'ast Pat)

Source§

fn visit_pat_ident(&mut self, i: &'ast PatIdent)

Source§

fn visit_pat_or(&mut self, i: &'ast PatOr)

Source§

fn visit_pat_paren(&mut self, i: &'ast PatParen)

Source§

fn visit_pat_reference(&mut self, i: &'ast PatReference)

Source§

fn visit_pat_rest(&mut self, i: &'ast PatRest)

Source§

fn visit_pat_slice(&mut self, i: &'ast PatSlice)

Source§

fn visit_pat_struct(&mut self, i: &'ast PatStruct)

Source§

fn visit_pat_tuple(&mut self, i: &'ast PatTuple)

Source§

fn visit_pat_tuple_struct(&mut self, i: &'ast PatTupleStruct)

Source§

fn visit_pat_type(&mut self, i: &'ast PatType)

Source§

fn visit_pat_wild(&mut self, i: &'ast PatWild)

Source§

fn visit_path(&mut self, i: &'ast Path)

Source§

fn visit_path_arguments(&mut self, i: &'ast PathArguments)

Source§

fn visit_path_segment(&mut self, i: &'ast PathSegment)

Source§

fn visit_pointer_mutability(&mut self, i: &'ast PointerMutability)

Source§

fn visit_precise_capture(&mut self, i: &'ast PreciseCapture)

Source§

fn visit_predicate_lifetime(&mut self, i: &'ast PredicateLifetime)

Source§

fn visit_predicate_type(&mut self, i: &'ast PredicateType)

Source§

fn visit_qself(&mut self, i: &'ast QSelf)

Source§

fn visit_range_limits(&mut self, i: &'ast RangeLimits)

Source§

fn visit_receiver(&mut self, i: &'ast Receiver)

Source§

fn visit_return_type(&mut self, i: &'ast ReturnType)

Source§

fn visit_signature(&mut self, i: &'ast Signature)

Source§

fn visit_span(&mut self, i: &Span)

Source§

fn visit_static_mutability(&mut self, i: &'ast StaticMutability)

Source§

fn visit_stmt(&mut self, i: &'ast Stmt)

Source§

fn visit_stmt_macro(&mut self, i: &'ast StmtMacro)

Source§

fn visit_token_stream(&mut self, i: &'ast TokenStream)

Source§

fn visit_trait_bound(&mut self, i: &'ast TraitBound)

Source§

fn visit_trait_bound_modifier(&mut self, i: &'ast TraitBoundModifier)

Source§

fn visit_trait_item(&mut self, i: &'ast TraitItem)

Source§

fn visit_trait_item_const(&mut self, i: &'ast TraitItemConst)

Source§

fn visit_trait_item_fn(&mut self, i: &'ast TraitItemFn)

Source§

fn visit_trait_item_macro(&mut self, i: &'ast TraitItemMacro)

Source§

fn visit_trait_item_type(&mut self, i: &'ast TraitItemType)

Source§

fn visit_type(&mut self, i: &'ast Type)

Source§

fn visit_type_array(&mut self, i: &'ast TypeArray)

Source§

fn visit_type_bare_fn(&mut self, i: &'ast TypeBareFn)

Source§

fn visit_type_group(&mut self, i: &'ast TypeGroup)

Source§

fn visit_type_impl_trait(&mut self, i: &'ast TypeImplTrait)

Source§

fn visit_type_infer(&mut self, i: &'ast TypeInfer)

Source§

fn visit_type_macro(&mut self, i: &'ast TypeMacro)

Source§

fn visit_type_never(&mut self, i: &'ast TypeNever)

Source§

fn visit_type_param(&mut self, i: &'ast TypeParam)

Source§

fn visit_type_param_bound(&mut self, i: &'ast TypeParamBound)

Source§

fn visit_type_paren(&mut self, i: &'ast TypeParen)

Source§

fn visit_type_path(&mut self, i: &'ast TypePath)

Source§

fn visit_type_ptr(&mut self, i: &'ast TypePtr)

Source§

fn visit_type_reference(&mut self, i: &'ast TypeReference)

Source§

fn visit_type_slice(&mut self, i: &'ast TypeSlice)

Source§

fn visit_type_trait_object(&mut self, i: &'ast TypeTraitObject)

Source§

fn visit_type_tuple(&mut self, i: &'ast TypeTuple)

Source§

fn visit_un_op(&mut self, i: &'ast UnOp)

Source§

fn visit_use_glob(&mut self, i: &'ast UseGlob)

Source§

fn visit_use_group(&mut self, i: &'ast UseGroup)

Source§

fn visit_use_name(&mut self, i: &'ast UseName)

Source§

fn visit_use_path(&mut self, i: &'ast UsePath)

Source§

fn visit_use_rename(&mut self, i: &'ast UseRename)

Source§

fn visit_use_tree(&mut self, i: &'ast UseTree)

Source§

fn visit_variadic(&mut self, i: &'ast Variadic)

Source§

fn visit_variant(&mut self, i: &'ast Variant)

Source§

fn visit_vis_restricted(&mut self, i: &'ast VisRestricted)

Source§

fn visit_visibility(&mut self, i: &'ast Visibility)

Source§

fn visit_where_clause(&mut self, i: &'ast WhereClause)

Source§

fn visit_where_predicate(&mut self, i: &'ast WherePredicate)

Auto Trait Implementations§

§

impl Freeze for Parser

§

impl RefUnwindSafe for Parser

§

impl Send for Parser

§

impl Sync for Parser

§

impl Unpin for Parser

§

impl UnwindSafe for Parser

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<D> OwoColorize for D

Source§

fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>
where C: Color,

Set the foreground color generically Read more
Source§

fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>
where C: Color,

Set the background color generically. Read more
Source§

fn black(&self) -> FgColorDisplay<'_, Black, Self>

Change the foreground color to black
Source§

fn on_black(&self) -> BgColorDisplay<'_, Black, Self>

Change the background color to black
Source§

fn red(&self) -> FgColorDisplay<'_, Red, Self>

Change the foreground color to red
Source§

fn on_red(&self) -> BgColorDisplay<'_, Red, Self>

Change the background color to red
Source§

fn green(&self) -> FgColorDisplay<'_, Green, Self>

Change the foreground color to green
Source§

fn on_green(&self) -> BgColorDisplay<'_, Green, Self>

Change the background color to green
Source§

fn yellow(&self) -> FgColorDisplay<'_, Yellow, Self>

Change the foreground color to yellow
Source§

fn on_yellow(&self) -> BgColorDisplay<'_, Yellow, Self>

Change the background color to yellow
Source§

fn blue(&self) -> FgColorDisplay<'_, Blue, Self>

Change the foreground color to blue
Source§

fn on_blue(&self) -> BgColorDisplay<'_, Blue, Self>

Change the background color to blue
Source§

fn magenta(&self) -> FgColorDisplay<'_, Magenta, Self>

Change the foreground color to magenta
Source§

fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>

Change the background color to magenta
Source§

fn purple(&self) -> FgColorDisplay<'_, Magenta, Self>

Change the foreground color to purple
Source§

fn on_purple(&self) -> BgColorDisplay<'_, Magenta, Self>

Change the background color to purple
Source§

fn cyan(&self) -> FgColorDisplay<'_, Cyan, Self>

Change the foreground color to cyan
Source§

fn on_cyan(&self) -> BgColorDisplay<'_, Cyan, Self>

Change the background color to cyan
Source§

fn white(&self) -> FgColorDisplay<'_, White, Self>

Change the foreground color to white
Source§

fn on_white(&self) -> BgColorDisplay<'_, White, Self>

Change the background color to white
Source§

fn default_color(&self) -> FgColorDisplay<'_, Default, Self>

Change the foreground color to the terminal default
Source§

fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>

Change the background color to the terminal default
Source§

fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>

Change the foreground color to bright black
Source§

fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>

Change the background color to bright black
Source§

fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>

Change the foreground color to bright red
Source§

fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>

Change the background color to bright red
Source§

fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>

Change the foreground color to bright green
Source§

fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>

Change the background color to bright green
Source§

fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>

Change the foreground color to bright yellow
Source§

fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>

Change the background color to bright yellow
Source§

fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>

Change the foreground color to bright blue
Source§

fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>

Change the background color to bright blue
Source§

fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>

Change the foreground color to bright magenta
Source§

fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>

Change the background color to bright magenta
Source§

fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>

Change the foreground color to bright purple
Source§

fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>

Change the background color to bright purple
Source§

fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>

Change the foreground color to bright cyan
Source§

fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>

Change the background color to bright cyan
Source§

fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>

Change the foreground color to bright white
Source§

fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>

Change the background color to bright white
Source§

fn bold(&self) -> BoldDisplay<'_, Self>

Make the text bold
Source§

fn dimmed(&self) -> DimDisplay<'_, Self>

Make the text dim
Source§

fn italic(&self) -> ItalicDisplay<'_, Self>

Make the text italicized
Source§

fn underline(&self) -> UnderlineDisplay<'_, Self>

Make the text underlined
Make the text blink
Make the text blink (but fast!)
Source§

fn reversed(&self) -> ReversedDisplay<'_, Self>

Swap the foreground and background colors
Source§

fn hidden(&self) -> HiddenDisplay<'_, Self>

Hide the text
Source§

fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>

Cross out the text
Source§

fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>
where Color: DynColor,

Set the foreground color at runtime. Only use if you do not know which color will be used at compile-time. If the color is constant, use either OwoColorize::fg or a color-specific method, such as OwoColorize::green, Read more
Source§

fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>
where Color: DynColor,

Set the background color at runtime. Only use if you do not know what color to use at compile-time. If the color is constant, use either OwoColorize::bg or a color-specific method, such as OwoColorize::on_yellow, Read more
Source§

fn fg_rgb<const R: u8, const G: u8, const B: u8>( &self, ) -> FgColorDisplay<'_, CustomColor<R, G, B>, Self>

Set the foreground color to a specific RGB value.
Source§

fn bg_rgb<const R: u8, const G: u8, const B: u8>( &self, ) -> BgColorDisplay<'_, CustomColor<R, G, B>, Self>

Set the background color to a specific RGB value.
Source§

fn truecolor(&self, r: u8, g: u8, b: u8) -> FgDynColorDisplay<'_, Rgb, Self>

Sets the foreground color to an RGB value.
Source§

fn on_truecolor(&self, r: u8, g: u8, b: u8) -> BgDynColorDisplay<'_, Rgb, Self>

Sets the background color to an RGB value.
Source§

fn style(&self, style: Style) -> Styled<&Self>

Apply a runtime-determined style
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more