pub struct FuncAttr<A = i32> {
pub size: Range<A>,
pub partiality: PartialityAttr,
pub jectivity: JectivityAttr,
pub representation: Option<String>,
}Fields§
§size: Range<A>§partiality: PartialityAttr§jectivity: JectivityAttr§representation: Option<String>Optional user-facing representation preference (short name), e.g. "packed".
Written in Essence as function (representation packed, …). When present, representation
selection heuristics default to this representation if it is applicable.
Implementations§
Trait Implementations§
Source§impl<'de, A> Deserialize<'de> for FuncAttr<A>where
A: Deserialize<'de>,
impl<'de, A> Deserialize<'de> for FuncAttr<A>where
A: Deserialize<'de>,
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
impl<A: Eq> Eq for FuncAttr<A>
Source§impl<B, C> FuncMap<B, C> for FuncAttr<B>where
Range<B>: FuncMap<B, C, TypeParam<0usize>, Output = Range<C>>,
PartialityAttr: Sized,
JectivityAttr: Sized,
Option<String>: Sized,
impl<B, C> FuncMap<B, C> for FuncAttr<B>where
Range<B>: FuncMap<B, C, TypeParam<0usize>, Output = Range<C>>,
PartialityAttr: Sized,
JectivityAttr: Sized,
Option<String>: Sized,
Source§fn func_map<F>(self, f: F) -> Self::Outputwhere
F: FnMut(B) -> C,
fn func_map<F>(self, f: F) -> Self::Outputwhere
F: FnMut(B) -> C,
Applies the closure
f to self in a functorial way§fn func_map_over<Q, F>(self, f: F) -> Self::Outputwhere
F: FnMut(A) -> B,
Q: FuncMarker<P>,
fn func_map_over<Q, F>(self, f: F) -> Self::Outputwhere
F: FnMut(A) -> B,
Q: FuncMarker<P>,
Applies the closure
f to self in a functorial way, allowing explicit
specification of the marker type P Read moreSource§impl<A> Quine for FuncAttr<A>where
A: Quine,
impl<A> Quine for FuncAttr<A>where
A: Quine,
fn ctor_tokens(&self) -> TokenStream
impl<A: PartialEq> StructuralPartialEq for FuncAttr<A>
Auto Trait Implementations§
impl<A> Freeze for FuncAttr<A>
impl<A> RefUnwindSafe for FuncAttr<A>where
Range<A>: RefUnwindSafe,
impl<A> Send for FuncAttr<A>
impl<A> Sync for FuncAttr<A>
impl<A> Unpin for FuncAttr<A>
impl<A> UnsafeUnpin for FuncAttr<A>where
Range<A>: UnsafeUnpin,
impl<A> UnwindSafe for FuncAttr<A>where
Range<A>: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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 moreimpl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
Layout§
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.