-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libdonet: Split Panda's DC Parameter into Attribute and Parameter
Read the rust doc strings for more information.
- Loading branch information
Showing
7 changed files
with
125 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// DONET SOFTWARE | ||
// Copyright (c) 2024, Donet Authors. | ||
// | ||
// This program is free software; you can redistribute it and/or modify | ||
// it under the terms of the GNU Affero General Public License version 3. | ||
// You should have received a copy of this license along | ||
// with this source code in a file named "LICENSE." | ||
// | ||
// This program 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 General Public License for more details. | ||
// | ||
// You should have received a copy of the GNU Affero General Public License | ||
// along with this program; if not, write to the Free Software Foundation, | ||
// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | ||
|
||
use crate::dcfield::DCField; | ||
|
||
/// A DC Attribute Field is a type of DC Field which can be found | ||
/// in DC Structs and Distributed Classes. | ||
/// | ||
/// Unlike the Panda source, structure elements are called attributes, | ||
/// instead of parameters, as it raises confusion with DC Atomic Field's | ||
/// elements, which are a simpler form of Panda's DC Parameters, as they | ||
/// do not carry DC Keywords, but their corresponding DC Atomic Field does. | ||
#[derive(Debug)] | ||
pub struct DCAttributeField { | ||
_dcattributefield_parent: DCField, | ||
} | ||
|
||
/// See issue #22. | ||
impl std::ops::Deref for DCAttributeField { | ||
type Target = DCField; | ||
fn deref(&self) -> &Self::Target { | ||
&self._dcattributefield_parent | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters