pub struct RecordRowF<Ty> {
pub id: LocIdent,
pub typ: Ty,
}Expand description
A record row, mapping an identifier to a type. A record type is a dictionary mapping
identifiers to Nickel type. Record types are represented as sequences of RecordRowF, ending
potentially with a type variable or Dyn in tail position.
§Type parameters
As other types with the F suffix, this type is parametrized by one or more recursive
unfoldings (here, Ty for TypeF). See TypeF for more details.
Fields§
§id: LocIdent§typ: TyTrait Implementations§
Source§impl<Ty: Clone> Clone for RecordRowF<Ty>
impl<Ty: Clone> Clone for RecordRowF<Ty>
Source§fn clone(&self) -> RecordRowF<Ty>
fn clone(&self) -> RecordRowF<Ty>
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<Ty: CloneTo> CloneTo for RecordRowF<Ty>
impl<Ty: CloneTo> CloneTo for RecordRowF<Ty>
Source§impl<Ty: Debug> Debug for RecordRowF<Ty>
impl<Ty: Debug> Debug for RecordRowF<Ty>
Source§impl<Ty: PartialEq> PartialEq for RecordRowF<Ty>
impl<Ty: PartialEq> PartialEq for RecordRowF<Ty>
Source§impl<'a, 'ast, Ty> Pretty<'a, Allocator> for &RecordRowF<Ty>
impl<'a, 'ast, Ty> Pretty<'a, Allocator> for &RecordRowF<Ty>
impl<Ty: Eq> Eq for RecordRowF<Ty>
impl<Ty> StructuralPartialEq for RecordRowF<Ty>
Auto Trait Implementations§
impl<Ty> Freeze for RecordRowF<Ty>where
Ty: Freeze,
impl<Ty> RefUnwindSafe for RecordRowF<Ty>where
Ty: RefUnwindSafe,
impl<Ty> Send for RecordRowF<Ty>where
Ty: Send,
impl<Ty> Sync for RecordRowF<Ty>where
Ty: Sync,
impl<Ty> Unpin for RecordRowF<Ty>where
Ty: Unpin,
impl<Ty> UnsafeUnpin for RecordRowF<Ty>where
Ty: UnsafeUnpin,
impl<Ty> UnwindSafe for RecordRowF<Ty>where
Ty: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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