pub enum RenderedOutput {
Text(TextOutput),
Binary(Vec<u8>, String),
Artifact(ArtifactOutput),
Silent,
}Variants§
Implementations§
Source§impl RenderedOutput
impl RenderedOutput
pub fn is_text(&self) -> bool
pub fn is_binary(&self) -> bool
pub fn is_artifact(&self) -> bool
pub fn is_silent(&self) -> bool
pub fn as_text(&self) -> Option<&str>
pub fn as_raw_text(&self) -> Option<&str>
pub fn as_text_output(&self) -> Option<&TextOutput>
pub fn as_binary(&self) -> Option<(&[u8], &str)>
pub fn as_artifact(&self) -> Option<&ArtifactOutput>
pub fn as_artifact_mut(&mut self) -> Option<&mut ArtifactOutput>
Trait Implementations§
Source§impl Clone for RenderedOutput
impl Clone for RenderedOutput
Source§fn clone(&self) -> RenderedOutput
fn clone(&self) -> RenderedOutput
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 moreAuto Trait Implementations§
impl Freeze for RenderedOutput
impl RefUnwindSafe for RenderedOutput
impl Send for RenderedOutput
impl Sync for RenderedOutput
impl Unpin for RenderedOutput
impl UnsafeUnpin for RenderedOutput
impl UnwindSafe for RenderedOutput
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