API reference

python:astx:astx.borrows.BorrowDeclaration.__init__

method __init__

__init__(name: str, type_: DataType, source: Expr, access: BorrowAccess, *, mutability: MutabilityKind = MutabilityKind.mutable, loc: SourceLocation = NO_SOURCE_LOCATION) -> None

Source: packages/astx/src/astx/borrows.py:46

Initialize a local borrow declaration.

Parameters

Returns

Type: None

Search documentation

Type to search.