[][src]Struct dqcsim::common::types::QubitRef

#[repr(transparent)]pub struct QubitRef(_);

Represents a reference to a qubit.

Implementations

impl QubitRef[src]

pub fn null() -> QubitRef[src]

Returns a null qubit reference.

pub fn is_null(self) -> bool[src]

Returns whether this reference is null.

pub fn from_foreign(qubit: u64) -> Option<QubitRef>[src]

Converts the foreign representation of a qubit reference to the type-safe Rust representation.

pub fn to_foreign(self) -> Result<u64>[src]

Converts the type-safe Rust representation of a qubit reference to the foreign representation.

pub fn option_to_foreign(qubit: Option<QubitRef>) -> Result<u64>[src]

Converts the type-safe Rust representation of a qubit reference to the foreign representation.

Trait Implementations

impl Clone for QubitRef[src]

impl Copy for QubitRef[src]

impl Debug for QubitRef[src]

impl<'de> Deserialize<'de> for QubitRef[src]

impl Display for QubitRef[src]

impl Eq for QubitRef[src]

impl Hash for QubitRef[src]

impl Into<String> for QubitRef[src]

impl PartialEq<QubitRef> for QubitRef[src]

impl Serialize for QubitRef[src]

impl StructuralEq for QubitRef[src]

impl StructuralPartialEq for QubitRef[src]

Auto Trait Implementations

impl RefUnwindSafe for QubitRef

impl Send for QubitRef

impl Sync for QubitRef

impl Unpin for QubitRef

impl UnwindSafe for QubitRef

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,