Skip to main content

bxl.Result type

bxl.Result.is_ok

def bxl.Result.is_ok() -> bool

Returns true if the result is an Ok value, false if it is an Error


bxl.Result.unwrap

def bxl.Result.unwrap()

Unwrap the result, returning the inner value if the result is Ok. If the result is an Error, it will fail


bxl.Result.unwrap_err

def bxl.Result.unwrap_err() -> bxl.Error

Unwrap the error, returning the inner error if the result is Err. If the result is an Ok, it will fail