pub struct ProjectionHandler { /* private fields */ }Expand description
The identity and behavior version of a handler that participated in emission.
Implementations§
Source§impl ProjectionHandler
impl ProjectionHandler
Sourcepub fn new(id: impl Into<String>, version: u16) -> Result<Self, Diagnostic>
pub fn new(id: impl Into<String>, version: u16) -> Result<Self, Diagnostic>
Construct one executed projection-handler identity.
Sourcepub fn typescript_v1() -> Self
pub fn typescript_v1() -> Self
Construct the initial built-in TypeScript generator identity.
Sourcepub const fn id(&self) -> &ProjectionHandlerId
pub const fn id(&self) -> &ProjectionHandlerId
Return the handler identity.
Sourcepub const fn version(&self) -> ProjectionHandlerVersion
pub const fn version(&self) -> ProjectionHandlerVersion
Return the handler behavior version.
Trait Implementations§
Source§impl Clone for ProjectionHandler
impl Clone for ProjectionHandler
Source§fn clone(&self) -> ProjectionHandler
fn clone(&self) -> ProjectionHandler
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ProjectionHandler
impl Debug for ProjectionHandler
impl Eq for ProjectionHandler
Source§impl PartialEq for ProjectionHandler
impl PartialEq for ProjectionHandler
Source§impl Serialize for ProjectionHandler
impl Serialize for ProjectionHandler
impl StructuralPartialEq for ProjectionHandler
Auto Trait Implementations§
impl Freeze for ProjectionHandler
impl RefUnwindSafe for ProjectionHandler
impl Send for ProjectionHandler
impl Sync for ProjectionHandler
impl Unpin for ProjectionHandler
impl UnsafeUnpin for ProjectionHandler
impl UnwindSafe for ProjectionHandler
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