pub struct TargetDescriptor {
pub name: String,
pub display_name: String,
pub traits: Vec<String>,
pub methods: Vec<String>,
pub templates: Vec<String>,
pub adapters: Vec<String>,
pub future_sinks: Vec<String>,
pub syntax: TemplateSyntax,
}Expand description
Registration point for another render target. Supply its trait identities,
output entry points, and syntax; comparison and intent handling are shared.
A format with a different grammar can supply a custom semantic parser,
or provide summaries directly through compare_views.
Fields§
§name: String§display_name: String§traits: Vec<String>§methods: Vec<String>§templates: Vec<String>§adapters: Vec<String>§future_sinks: Vec<String>Functions whose async argument is polled as this render outcome.
syntax: TemplateSyntaxTrait Implementations§
Source§impl Clone for TargetDescriptor
impl Clone for TargetDescriptor
Auto Trait Implementations§
impl Freeze for TargetDescriptor
impl RefUnwindSafe for TargetDescriptor
impl Send for TargetDescriptor
impl Sync for TargetDescriptor
impl Unpin for TargetDescriptor
impl UnsafeUnpin for TargetDescriptor
impl UnwindSafe for TargetDescriptor
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> 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 more