pub struct OracleId(/* private fields */);
Expand description
Identifier for a multilinear oracle in a super::MultilinearOracleSet
.
This is essentially an index.
Implementations§
Source§impl OracleId
impl OracleId
Sourcepub fn from_index(index: usize) -> Self
pub fn from_index(index: usize) -> Self
Create an Oracle ID from the index this oracle stored in the
super::MultilinearOracleSet
.
Largely an escape hatch and discouraged to use.
Sourcepub fn index(&self) -> usize
pub fn index(&self) -> usize
Returns the index in the associated super::MultilinearOracleSet
.
Largely an escape hatch and discouraged to use.
Trait Implementations§
Source§impl DeserializeBytes for OracleId
impl DeserializeBytes for OracleId
fn deserialize(
read_buf: impl Buf,
mode: SerializationMode,
) -> Result<Self, SerializationError>where
Self: Sized,
Source§impl<F: TowerField> Index<OracleId> for MultilinearOracleSet<F>
impl<F: TowerField> Index<OracleId> for MultilinearOracleSet<F>
Source§impl Ord for OracleId
impl Ord for OracleId
Source§impl PartialOrd for OracleId
impl PartialOrd for OracleId
Source§impl SerializeBytes for OracleId
impl SerializeBytes for OracleId
fn serialize( &self, write_buf: impl BufMut, mode: SerializationMode, ) -> Result<(), SerializationError>
impl Copy for OracleId
impl Eq for OracleId
impl StructuralPartialEq for OracleId
Auto Trait Implementations§
impl Freeze for OracleId
impl RefUnwindSafe for OracleId
impl Send for OracleId
impl Sync for OracleId
impl Unpin for OracleId
impl UnwindSafe for OracleId
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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