pub struct ChordDsl {
pub empty: Option<EmptyDsl>,
pub root: Option<SyllableDsl>,
pub intervals: Vec<IntervalDsl>,
pub bass: Option<IntervalDsl>,
pub duration_tweak: Option<DurationTweakDsl>,
}Fields§
§empty: Option<EmptyDsl>§root: Option<SyllableDsl>§intervals: Vec<IntervalDsl>§bass: Option<IntervalDsl>§duration_tweak: Option<DurationTweakDsl>Implementations§
Source§impl ChordDsl
impl ChordDsl
pub fn empty(empty: EmptyDsl) -> Self
pub fn chord( root: SyllableDsl, intervals: Vec<IntervalDsl>, bass: Option<IntervalDsl>, duration_tweak: Option<DurationTweakDsl>, ) -> Self
Source§impl ChordDsl
impl ChordDsl
pub fn parse_without_paren( input: ParseStream<'_>, multied: bool, with_paren: bool, ) -> Result<Self, Error>
Source§impl ChordDsl
impl ChordDsl
pub fn parse_vec(input: ParseStream<'_>) -> Result<Vec<ChordDsl>, Error>
pub fn quote_multible(v: &MultibleDsl<ChordDsl>) -> TokenStream
Trait Implementations§
Source§impl ToTokens for ChordDsl
impl ToTokens for ChordDsl
Source§fn to_tokens(&self, tokens: &mut TokenStream)
fn to_tokens(&self, tokens: &mut TokenStream)
Source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Source§fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
Auto Trait Implementations§
impl Freeze for ChordDsl
impl RefUnwindSafe for ChordDsl
impl Send for ChordDsl
impl Sync for ChordDsl
impl Unpin for ChordDsl
impl UnwindSafe for ChordDsl
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Spanned for Twhere
T: Spanned + ?Sized,
impl<T> Spanned for Twhere
T: Spanned + ?Sized,
Source§fn span(&self) -> Span
fn span(&self) -> Span
Returns a
Span covering the complete contents of this syntax tree
node, or Span::call_site() if this node is empty.