pub struct ShorResult {
pub factor: Option<u64>,
pub base: u64,
pub order: u64,
}Expand description
Outcome of shor_factor.
Fields§
§factor: Option<u64>A non-trivial factor of N (with 1 < factor < N), if one was found.
base: u64The base a that succeeded (or the last one tried).
order: u64The order r of a modulo N that produced the factor.
Trait Implementations§
Source§impl Clone for ShorResult
impl Clone for ShorResult
Auto Trait Implementations§
impl Freeze for ShorResult
impl RefUnwindSafe for ShorResult
impl Send for ShorResult
impl Sync for ShorResult
impl Unpin for ShorResult
impl UnsafeUnpin for ShorResult
impl UnwindSafe for ShorResult
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