looklook 0.5.0

Descriptive signal synthesiser.
// Copyright 2026 Gabriel Bjørnager Jensen.
//
// This file is part of LOOKLOOK.
//
// LOOKLOOK is free software: you can redistribute
// it and/or modify it under the terms of the GNU
// Affero General Public License as published by
// the Free Software Foundation, either version 3
// of the License, or (at your option) any later
// version.
//
// LOOKLOOK is distributed in the hope that it will
// be useful, but WITHOUT ANY WARRANTY; without
// even the implied warranty of MERCHANTABILITY or
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Affero General Public License for more details.
//
// You should have received a copy of the GNU Af-
// fero General Public License along with LOOKLOOK.
// If not, see <https://www.gnu.org/licenses/>.

//! The [`Output`] type.

mod dump;

use crate::config::Config;

/// A render output.
#[derive(Clone, Debug)]
pub struct Output {
	/// The render configuration.
	pub(super) config: Config,

	/// Owned, encoded data.
	pub(super) data: Box<[u8]>,
}

impl Output {
	/// Retrieves the encoded render data.
	#[inline]
	#[must_use]
	pub const fn data(&self) -> &[u8] {
		&self.data
	}
}