> ## Documentation Index
> Fetch the complete documentation index at: https://docs.starknet.io/llms.txt
> Use this file to discover all available pages before exploring further.

# core::integer::u512_safe_div_rem_by_u256

Calculates division with remainder of a u512 by a non-zero u256.

## Signature

```rust theme={null}
pub fn u512_safe_div_rem_by_u256(lhs: u512, rhs: NonZero) -> (u512, u256)
```
