pub struct Constraint<'a> { /* private fields */ }Expand description
Decoded constraint from a CDF file
Implementations§
Source§impl<'a> Constraint<'a>
impl<'a> Constraint<'a>
Sourcepub const fn polynomial(&self) -> &Polynomial
pub const fn polynomial(&self) -> &Polynomial
Polynomial representation
Trait Implementations§
Source§impl<'a> Clone for Constraint<'a>
impl<'a> Clone for Constraint<'a>
Source§fn clone(&self) -> Constraint<'a>
fn clone(&self) -> Constraint<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for Constraint<'a>
impl<'a> Debug for Constraint<'a>
Source§impl<'a> DecodableElement for Constraint<'a>
impl<'a> DecodableElement for Constraint<'a>
Source§fn try_from_buffer_in_place<'x, 'b>(
&'x mut self,
ctx: &DecoderContext<'x>,
buf: &'b [u8],
) -> Result<()>
fn try_from_buffer_in_place<'x, 'b>( &'x mut self, ctx: &DecoderContext<'x>, buf: &'b [u8], ) -> Result<()>
Deserialize the type from a given buffer Read more
Source§fn try_from_buffer<'b>(ctx: &DecoderContext<'_>, buf: &'b [u8]) -> Result<Self>
fn try_from_buffer<'b>(ctx: &DecoderContext<'_>, buf: &'b [u8]) -> Result<Self>
Create a new instance of the type from the provided buffer
Source§fn try_decode_in_place<'a, 'b>(
&mut self,
ctx: &DecoderContext<'a>,
buf: &'b [u8],
) -> Result<&'b [u8]>
fn try_decode_in_place<'a, 'b>( &mut self, ctx: &DecoderContext<'a>, buf: &'b [u8], ) -> Result<&'b [u8]>
Write an element from the buffer, and return the remainder bytes Read more
Source§fn try_decode<'a, 'b>(
ctx: &DecoderContext<'a>,
buf: &'b [u8],
) -> Result<(Self, &'b [u8])>
fn try_decode<'a, 'b>( ctx: &DecoderContext<'a>, buf: &'b [u8], ) -> Result<(Self, &'b [u8])>
Write an element from the buffer, and return the remainder bytes Read more
Source§fn try_from_reader<R>(ctx: &DecoderContext<'_>, reader: R) -> Result<Self>where
R: Read,
fn try_from_reader<R>(ctx: &DecoderContext<'_>, reader: R) -> Result<Self>where
R: Read,
Fetch a new element from a context
Source§impl<'a> Default for Constraint<'a>
impl<'a> Default for Constraint<'a>
Source§fn default() -> Constraint<'a>
fn default() -> Constraint<'a>
Returns the “default value” for a type. Read more
Source§impl<'a> Element for Constraint<'a>
impl<'a> Element for Constraint<'a>
Source§impl<'a> Hash for Constraint<'a>
impl<'a> Hash for Constraint<'a>
Source§impl<'a> PartialEq for Constraint<'a>
impl<'a> PartialEq for Constraint<'a>
impl<'a> Eq for Constraint<'a>
impl<'a> StructuralPartialEq for Constraint<'a>
Auto Trait Implementations§
impl<'a> Freeze for Constraint<'a>
impl<'a> RefUnwindSafe for Constraint<'a>
impl<'a> Send for Constraint<'a>
impl<'a> Sync for Constraint<'a>
impl<'a> Unpin for Constraint<'a>
impl<'a> UnwindSafe for Constraint<'a>
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