pub struct BlackBoxData { /* private fields */ }Expand description
Data associated with an opaque black-box operation.
Implementations§
Source§impl BlackBoxData
impl BlackBoxData
Sourcepub fn new(qubits: Vec<usize>, content: String) -> Self
pub fn new(qubits: Vec<usize>, content: String) -> Self
Creates black-box data for the provided qubits and payload string.
Sourcepub fn get_qubits(&self) -> &Vec<usize>
pub fn get_qubits(&self) -> &Vec<usize>
Returns the qubits touched by the black-box operation.
Sourcepub fn get_content(&self) -> &String
pub fn get_content(&self) -> &String
Returns the opaque payload content.
Trait Implementations§
Source§impl Clone for BlackBoxData
impl Clone for BlackBoxData
Source§impl Debug for BlackBoxData
impl Debug for BlackBoxData
Source§impl<'de> Deserialize<'de> for BlackBoxData
impl<'de> Deserialize<'de> for BlackBoxData
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for BlackBoxData
impl PartialEq for BlackBoxData
Source§impl Serialize for BlackBoxData
impl Serialize for BlackBoxData
impl StructuralPartialEq for BlackBoxData
Auto Trait Implementations§
impl Freeze for BlackBoxData
impl RefUnwindSafe for BlackBoxData
impl Send for BlackBoxData
impl Sync for BlackBoxData
impl Unpin for BlackBoxData
impl UnsafeUnpin for BlackBoxData
impl UnwindSafe for BlackBoxData
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