pub struct FunctionBodyStub;Expand description
A stub implementation of FunctionBody that panics on use.
Implementations§
Source§impl FunctionBodyStub
impl FunctionBodyStub
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new FunctionBodyStub.
Sourcepub fn rc_dyn<S>() -> Rc<dyn FunctionBodyObject<S>>
pub fn rc_dyn<S>() -> Rc<dyn FunctionBodyObject<S>>
Creates a new FunctionBodyStub contained in an Rc.
Suitable for passing to crate::function::Function::new.
Trait Implementations§
Source§impl Clone for FunctionBodyStub
impl Clone for FunctionBodyStub
Source§fn clone(&self) -> FunctionBodyStub
fn clone(&self) -> FunctionBodyStub
Returns a duplicate 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 FunctionBodyStub
impl Debug for FunctionBodyStub
Source§impl Default for FunctionBodyStub
impl Default for FunctionBodyStub
Source§fn default() -> FunctionBodyStub
fn default() -> FunctionBodyStub
Returns the “default value” for a type. Read more
Source§impl Display for FunctionBodyStub
Always panics when formatted.
impl Display for FunctionBodyStub
Always panics when formatted.
Source§impl<S> FunctionBody<S> for FunctionBodyStub
Always panics when executed.
impl<S> FunctionBody<S> for FunctionBodyStub
Always panics when executed.
Auto Trait Implementations§
impl Freeze for FunctionBodyStub
impl RefUnwindSafe for FunctionBodyStub
impl Send for FunctionBodyStub
impl Sync for FunctionBodyStub
impl Unpin for FunctionBodyStub
impl UnsafeUnpin for FunctionBodyStub
impl UnwindSafe for FunctionBodyStub
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<S, T> FunctionBodyObject<S> for Twhere
T: FunctionBody<S> + ?Sized,
impl<S, T> FunctionBodyObject<S> for Twhere
T: FunctionBody<S> + ?Sized,
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