Skip to main content

qubit_metadata/
metadata_result.rs

1/*******************************************************************************
2 *
3 *    Copyright (c) 2025 - 2026 Haixing Hu.
4 *
5 *    SPDX-License-Identifier: Apache-2.0
6 *
7 *    Licensed under the Apache License, Version 2.0.
8 *
9 ******************************************************************************/
10//! [`MetadataResult`] — result alias for explicit `Metadata` operations.
11
12use crate::metadata_error::MetadataError;
13
14/// Result type used by explicit `Metadata` operations that report failure
15/// reasons instead of collapsing them into `None`.
16pub type MetadataResult<T> = Result<T, MetadataError>;