pub struct KnownFnInfo {
pub fn_set: Option<(FnSetBody, LineFile)>,
pub equal_to: Option<(Obj, LineFile)>,
pub restrict_to: Option<Vec<(FnSetBody, LineFile)>>,
}Fields§
§fn_set: Option<(FnSetBody, LineFile)>§equal_to: Option<(Obj, LineFile)>Defining expression: have fn … = rhs or name = '…{…} anonymous body.
restrict_to: Option<Vec<(FnSetBody, LineFile)>>Narrower $restrict_fn_in target signatures.
Implementations§
Source§impl KnownFnInfo
impl KnownFnInfo
Sourcepub fn merge_fn_set_equal_to(
fn_set: Option<(FnSetBody, LineFile)>,
equal_to: Option<(Obj, LineFile)>,
) -> Self
pub fn merge_fn_set_equal_to( fn_set: Option<(FnSetBody, LineFile)>, equal_to: Option<(Obj, LineFile)>, ) -> Self
Build from optional pieces; fields can be filled later via update_*.
pub fn update_restrict_to( &mut self, restrict_to: FnSetBody, line_file: LineFile, )
pub fn update_equal_to(&mut self, equal_to: Obj, line_file: LineFile)
pub fn update_fn_set(&mut self, fn_set: FnSetBody, line_file: LineFile)
Trait Implementations§
Source§impl Clone for KnownFnInfo
impl Clone for KnownFnInfo
Source§fn clone(&self) -> KnownFnInfo
fn clone(&self) -> KnownFnInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for KnownFnInfo
impl Default for KnownFnInfo
Source§fn default() -> KnownFnInfo
fn default() -> KnownFnInfo
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for KnownFnInfo
impl RefUnwindSafe for KnownFnInfo
impl !Send for KnownFnInfo
impl !Sync for KnownFnInfo
impl Unpin for KnownFnInfo
impl UnsafeUnpin for KnownFnInfo
impl UnwindSafe for KnownFnInfo
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