pub struct Function {Show 16 fields
pub id: StableId,
pub name: String,
pub qualified_name: String,
pub owner_type: Option<String>,
pub visibility: Visibility,
pub parameters: Vec<FunctionParameter>,
pub return_type: Option<String>,
pub cfg_predicates: Vec<String>,
pub cfg_active: Option<bool>,
pub source: String,
pub calls: Vec<StableId>,
pub tensor_inputs: Vec<StableId>,
pub tensor_outputs: Vec<StableId>,
pub is_entrypoint: bool,
pub is_loss: bool,
pub execution_phases: Vec<ExecutionPhase>,
}Fields§
§id: StableId§name: String§qualified_name: String§owner_type: Option<String>§visibility: Visibility§parameters: Vec<FunctionParameter>§return_type: Option<String>§cfg_predicates: Vec<String>Source-level #[cfg(...)] predicates inherited by this definition.
cfg_active: Option<bool>Whether those predicates match the selected Cargo feature/target context.
None means no Cargo context was available or a predicate was unsupported.
source: String§calls: Vec<StableId>§tensor_inputs: Vec<StableId>§tensor_outputs: Vec<StableId>§is_entrypoint: bool§is_loss: bool§execution_phases: Vec<ExecutionPhase>Static graphs built for this entrypoint (train and/or infer).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Function
impl<'de> Deserialize<'de> for Function
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 Eq for Function
impl StructuralPartialEq for Function
Auto Trait Implementations§
impl Freeze for Function
impl RefUnwindSafe for Function
impl Send for Function
impl Sync for Function
impl Unpin for Function
impl UnsafeUnpin for Function
impl UnwindSafe for Function
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