pub enum FheProgramInput {
Ciphertext(Ciphertext),
Plaintext(Box<dyn FheProgramInputTrait>),
}
Expand description
An input argument to an Fhe Program. See crate::Runtime::run
.
Variants§
Ciphertext(Ciphertext)
The argument is a ciphertext.
Plaintext(Box<dyn FheProgramInputTrait>)
The argument is a plaintext.
Trait Implementations§
Source§impl From<Ciphertext> for FheProgramInput
impl From<Ciphertext> for FheProgramInput
Source§fn from(val: Ciphertext) -> FheProgramInput
fn from(val: Ciphertext) -> FheProgramInput
Converts to this type from the input type.
Source§impl<T> From<T> for FheProgramInputwhere
T: FheProgramInputTrait + 'static,
impl<T> From<T> for FheProgramInputwhere
T: FheProgramInputTrait + 'static,
Source§fn from(val: T) -> FheProgramInput
fn from(val: T) -> FheProgramInput
Converts to this type from the input type.
Source§impl TypeNameInstance for FheProgramInput
impl TypeNameInstance for FheProgramInput
Source§fn type_name_instance(&self) -> Type
fn type_name_instance(&self) -> Type
Returns the
Type
of the &self
. Lives only on the instance so you can be object-safe
for use in dyn TypeName
.Auto Trait Implementations§
impl Freeze for FheProgramInput
impl !RefUnwindSafe for FheProgramInput
impl !Send for FheProgramInput
impl !Sync for FheProgramInput
impl Unpin for FheProgramInput
impl !UnwindSafe for FheProgramInput
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> 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