better-returns
    Preparing search index...

    Function unwrap

    • Unwraps the value from a 'some' Option or returns a default value for 'none' Option.

      Type Parameters

      • T

      Parameters

      • option: Option<T>

        The Option to unwrap.

      • with_default: T

        The default value to return if the option is 'none'.

      Returns T

      The value from 'some' or the default value.